O'Reilly logo

Appcelerator Titanium Smartphone App Development Cookbook - Second Edition by Jason Kneen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Detecting whether another iOS app is installed

In order to work with other apps, they must support a URL scheme. In its simplest form, this will allow you to detect and launch the app. More preferable is if the app supports URL scheme commands, allowing you to send instructions or data to it. There are a plenty of resources out there for doing this, including http://handleopenurl.com. On this site, you can look up particular apps and find out whether they support URL schemes.

As a general rule of thumb, most modern-day iOS apps support URL schemes by default, allowing you to launch them either with the app name (appname://) or by their full bundle identifier (com.mycompany.appname://).

In this recipe, we're going to use a very simple bit of code ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required