android - Determining if user installed an app (AIR / AS3) -


ok, i'm working on mobile game using air , as3. idea here want provide incentive installing game.

in other words: user taps button in game a, brings them app page game b. user installs game b, goes game a, get's reward in game a.

is there way detect game b has been installed? way seems detecting if game b installed when game resumes, can't seem find way of doing using as3/air.

i need both android , ios, assume require different methodology.

there couple ways answer this: custom url scheme: https://developer.apple.com/library/ios/documentation/iphone/conceptual/iphoneosprogrammingguide/advancedapptricks/advancedapptricks.html ( communicating other apps section)

this requires app attempting up-sell in fact implement custom url scheme, simple thing implement. once have url scheme, can make method checks: canopenurl: returns whether app can open given url resource.

  • (bool)canopenurl:(nsurl *)url (in uiapplication)

if want more significant data exchange (shared login, or such) use keychain facility: https://developer.apple.com/library/mac/documentation/security/conceptual/keychainservconcepts/iphonetasks/iphonetasks.html


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -