2

How can I register my iPhone app to open when I use openUrl in another app or in a website (in Safari)?

Moshe
  • 57,511
  • 78
  • 272
  • 425
  • possible duplicate of [Opening Native App. from Safari](http://stackoverflow.com/questions/2294286/opening-native-app-from-safari) – Brad Larson Nov 12 '10 at 18:25

2 Answers2

1

You can add url type and url scheme key in your info.plist file. read this post for detail - http://iosdevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html

Cœur
  • 37,241
  • 25
  • 195
  • 267
Saurabh
  • 22,743
  • 12
  • 84
  • 133
1

In your app's "info.plist" add a "URL Type". Add a single item with your app's identifier as "URL Identifier". Under this, add a single "URL Scheme" with the name of the handler you want.

For example add "myapp" to handle an a URL like "myapp://test/test/test"

Then handle the "handleOpenUrl" call in your app's delegate.

Brad
  • 11,262
  • 8
  • 55
  • 74