Skip to content

Launching Your Own Application via a Custom URL Scheme

Launching Your Own Application via a Custom URL Scheme.

Basically you just add a couple values to your app’s plist file:

“URL types”

then add “URL Identifier” to that w/ our reverse DNS value (e.g., “com.yourcompany.appname”). And add “URL Schemes” to it too with your url scheme value (e.g., “appname” which implies “appname://”).

That alone allows other apps to open your app. However, if you want to handle the query string when your app opens, you need to implement:

- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url

W/ the NSURL you can get the query string data and handle it appropriately.
Tags: