Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Share Intents - AGK Needs Them (Android and iOS)

Author
Message
xCept
21
Years of Service
User Offline
Joined: 15th Dec 2002
Location:
Posted: 4th May 2016 22:26 Edited at: 4th May 2016 22:37
Share Intents [Android and iOS]

We need Share Intents to ease and expand what options are available for exporting data to other apps and services. One of the most popular features of games these days is this simple ability, where you can hit a button and either export a screenshot or share your high score via email or any social network app installed on the device. You can observe this functionality on Stack, for instance. After completing a game, you hit the 'export' button at the bottom and can then export either a text message containing your score and a link to the app to any compatible external apps, or save/print a screenshot of your play.

iOS Sharing (via Extensions / UIActivityViewController)



Android Sharing (via Intents)



Note that this is NOT the same as integrating social network APIs directly into your app, which is a much more complex and error-prone process (AGK offers limited Twitter and Facebook support on that front). By using intents/extensions instead, we are provided with a maintenance free, familiar and dynamic feature that evolves the share capabilities automatically based on what platform and apps the user has installed. From our own app, it is a matter of simply passing text/metadata or an image to it and let the external apps take care of the rest.

This capability has been available on Android forever, and the similarly behaving functionality via Extensions in iOS has existed since at least iOS 7 (of which at least 97% of iOS users have this version or later). From a technical perspective it is extremely easy to implement using just a few Java calls (Android) and Objective C calls (iOS). There is no worry of maintaining SDKs for all the different social platforms, no need to create new app entries and keys for the various social sites, or anything of that sort.

Here is example code on how to share text and images via intents/extensions on Android and iOS. The code mentions Unity but the snippets are basically native Java and Objective C and could easily be worked into AGK's architecture.

Further reading here.

I hope you agree that this is a very worthwhile addition to AppGameKit and one that should not take a lot of time to implement. I would propose the following AppGameKit commands:

ShareTextWithIntents(strSubject, strMessage)
ShareImageWithIntents(intImgId, strMessage) [or strImgPath, strMessage]
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 5th May 2016 07:45
+1

This has been on the feature request list for a LONG time.
V2 T1 (Mostly)
Phone Tap!
Uzmadesign
Wilf
Valued Member
17
Years of Service
User Offline
Joined: 1st Jun 2006
Location: Gone to Unity.
Posted: 5th May 2016 11:53
JohnD99
17
Years of Service
User Offline
Joined: 4th Sep 2006
Location:
Posted: 24th May 2016 00:16
+1 - Actually just came to the forum looking into how to do this in T1.. found the commands still not in there. That is unfortunate.
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 24th May 2016 15:13
I'll see if I can get this in the next version
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 24th May 2016 15:20
Sweet!
V2 T1 (Mostly)
Phone Tap!
Uzmadesign

Login to post a reply

Server time is: 2024-04-27 05:33:09
Your offset time is: 2024-04-27 05:33:09