Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Possible to launch an iOS app from a web link

My app bounces the user out of the app into safari to do some web things (toying with using a webview but there are other concerns regarding layout, usage, re-launching the app, server errors, etc.). When they are done I would like a link on the final web page that lets them re-launch the app. I think this should be possible through a protocol implementation of some sort (such as href="myAppProtocol://relaunch") but I don't know how to go about implementing it properly.

[UPDATE] (can't answer my own question yet so editing here)

Stumbled across this just after posting (hours of looking and this is always how it comes together...) http://mobileorchard.com/apple-approved-iphone-inter-process-communication/

Using a URL type handler in your plist (as I suspected) you can declare that your app handles urls of that type (say "myAppProtocol"). iOS then launches your app and hands it the URL when it's touched in safari. What you do from there is up to you, I just need to launch so I don't take it any further, but you could grab the URL and parse it out for further passed information etc.

like image 304
ima747 Avatar asked Apr 26 '11 17:04

ima747


People also ask

How do I open an app from URL?

First of all you need to add intent filters for incoming links. Specify the ACTION_VIEW intent action so that the intent filter can be reached from Google Search. Add one or more tags, each of which represents a URI format that resolves to the activity. At minimum, the tag must include the android:scheme attribute.

Can you download an iOS app from a website?

For most people, that's absolutely true. The vast majority of apps on iPhones can be installed only through the App Store, and Apple doesn't offer an official way to install software outside of the App Store using an installation file downloaded from the internet, a process called “sideloading.”

Can an app be linked to a website?

Whether you wish to link your Android app to your website or create a fully native interface, AppMySite provides you all the options you need. The ease and relatively low cost of development make Android app creation an obvious choice.


1 Answers

I guess you found the answer already, but have a look at the docs as well: Using URL Schemes to Communicate with Apps.

like image 153
phi Avatar answered Oct 14 '22 20:10

phi