Copy link to clipboard
Copied
Hi, I'm developing a game for iOS with Flash CS5.5 Air API's.
I need a way to detect if another of my Apps is installed on the device.
On xCode it's simple:
I add a custom URL name with the "url types" method and I check if is installed with this code:
[[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"myApp://"]]
Is there a way to do this in AS3 with Adobe AIR for iOS?
Thank you all
Brandon
Copy link to clipboard
Copied
I thought to use this code:
txResponse.text = "neutral";
var request:URLRequest = new URLRequest("myApp://");
try
{
navigateToURL(request, '_blank');
txResponse.text = "installed";
}
catch (e:Error)
{
txResponse.text = "not installed";
}
but what URL I have to use instead of "myApp://" ?
Copy link to clipboard
Copied
check with app:/
Copy link to clipboard
Copied
Hi, relaxatraja, thanks for your reply...
But what I have to write instead of "app" ?
My app name? My App ID? What?
Copy link to clipboard
Copied
your app name which you added in *-app.xml file
but i guess it not dispatches error event if you putting wrong app name.
Copy link to clipboard
Copied
There is nice little native extension that uses iOS function canOpenUrl(). You can find it here http://www.saumitrabhave.com/2011/10/facebook-single-sign-on-for-air-ios.html
Copy link to clipboard
Copied
I used this little ANE, but now apple wants x64 support and this ANE is not updated. So topicstarter's question is opened again...
Copy link to clipboard
Copied
I also need a way to detect if another of my Applications is installed on the device (ios & Android both).
Plz let me know