Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone/iPad. How do I launch an app from link in Safari?

I have an app that I want to be launchable either explicitly when tapped or when a parameterized URL is clicked on on a webpage in Safari running on iPad or iPhone.

Can someone sketch the approach for me and/or point me to the relevant docs? Thanks so much.

Cheers,
Doug

like image 394
dugla Avatar asked Apr 16 '10 18:04

dugla


1 Answers

You basically need to register your own URL scheme in Info.plist, and your app becomes launchable. If you want to fine-tune the app behavior when launching from an URL, you can parse the parameters that are passed to your app as part of the URL, and do whatever you wish based on those.

Here’s the official Apple guide about the same topic.

like image 68
Jaanus Avatar answered Nov 17 '22 19:11

Jaanus