• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Check if an App is installed on iPhone

New Here ,
May 19, 2011 May 19, 2011

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

TOPICS
ActionScript

Views

6.9K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 19, 2011 May 19, 2011

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://" ?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
May 19, 2011 May 19, 2011

Copy link to clipboard

Copied

check with app:/

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 19, 2011 May 19, 2011

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 04, 2012 Jan 04, 2012

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 31, 2012 Jan 31, 2012

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 27, 2015 Jan 27, 2015

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...

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 04, 2015 Mar 04, 2015

Copy link to clipboard

Copied

LATEST

I also need a way to detect if another of my Applications is installed on the device (ios & Android both).

Plz let me know

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines