By browser protocol handler I mean spotifiy:// and coda://.
What options exist for iOS safari. Could I specify a BPH for dropbox or evernote and the browser would know to prompt "open item in evernote" for example?
Is this possible?
You can use -[UIApplication openURL:] to open an arbitrary URL. If another app has registered for the protocol scheme, they will then handle the URL. Similarly there's -[UIApplication canOpenURL:] to find out if a URL scheme can be handled before you attempt to invoke it. Note however, the OS does not prompt the user when you open a URL, it simply launches the app that's currently registered for that URL scheme and gives them the URL. If you want to prompt the user before this happens, you should do so yourself.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With