2

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

Moshe
  • 56,717
  • 76
  • 267
  • 423
  • 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
  • 34,719
  • 24
  • 185
  • 251
Saurabh
  • 22,521
  • 12
  • 81
  • 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
  • 10,916
  • 8
  • 52
  • 70