Posted by: bearc0025 | September 8, 2010

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: