Is there a way to detect if an app is installed (URL Scheme)

Hey guys,

I need to open facebook app and skype app through my app, but if the user doesn’t have those apps(skype and facebook), i want to send him to appStore. In objective c i know there is a function “canDetectUrl”, wich verify if the url scheme is reachable, there is any way to do this with corona?

Thanks in advance

Luiz Borges. [import]uid: 79152 topic_id: 21501 reply_id: 321501[/import]

What if you try to open the url system.openURL(“skype:”) and if it throws an is.Error then open the app link in appStore system.openURL(“http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id="..SKYPE_APPSTORE_ID.."&mt=8”)

[import]uid: 13560 topic_id: 21501 reply_id: 85079[/import]

Ansca have implemented that URL schema partially, I have been asking for it over than a year and a half and all it takes it wrapping a plain API or allowing deves to create their own Plug-Ins like Gideros does…

apparently, we are at their mercy on how things proceed… [import]uid: 3826 topic_id: 21501 reply_id: 85080[/import]

That might be a solutions for the question at hand (I did not try that) The reason that I wanted this URL API is for some really cool stuff that you can do and Apple Approves of it too. So if Ansca play the *Apple* card, just saying… [import]uid: 3826 topic_id: 21501 reply_id: 85081[/import]

hi lano78, thanks for your response.

we couldn’t find that is.Error you’re talking about… How do I reach it? is it an event called “is” with the property “Error”?

We found that system.openURL() returns true/false, contrary to what is stated in the api reference, so what we can do is check for this boolean and if/then/else it.

Our frustration with Corona’s docs grows each day. We simply cannot trust it and have to second guess every bit of it and google everything… :frowning: [import]uid: 79152 topic_id: 21501 reply_id: 85271[/import]

also, your link doesn’t seem to work on the browser…
we are planning to use http://itunes.apple.com/br/app/skype/id304878510?mt=8 instead, why is your link different and why do you choose to use it that way? [import]uid: 79152 topic_id: 21501 reply_id: 85273[/import]

I want to do this as well, as we have a few apps out there and I want to be able to detect if a user has the other ones installed.

Would this be a case of setting a custom url scheme for each app and then trying to call a url for that app and testing the result? [import]uid: 91921 topic_id: 21501 reply_id: 92113[/import]