3

I found a lot of tutorials about opening an app by a custom url scheme like:

myappname://

Thats nice but it would be great to open an app by registering the real app domain over the http link like

http://www.myappdomain.com/blablabla

So - for example - if a visitor comes to a webpage (on her/his mobile) it is normally opened in the browser, excepts the installed app is listening to the opened URL and opens itself instead of the browser.

How is this done (i've seen this at another app). Any help would be great. Thanks in advance!

Glorfindel
  • 19,729
  • 13
  • 67
  • 91
SteMa
  • 2,729
  • 2
  • 22
  • 29
  • 1
    possible duplicate of [Possible to handle your own http URL schemes in iOS?](http://stackoverflow.com/questions/4403992/possible-to-handle-your-own-http-url-schemes-in-ios) – Glorfindel Jul 14 '15 at 15:24
  • Thx for the quick reply. Will check that. – SteMa Jul 14 '15 at 15:42
  • On your website you need to detect a mobile device, and figure out if they have the app installed, then you could redirect them to your custom url scheme. – David Skrundz Jul 14 '15 at 15:53
  • but how can i detect if the app is installed on a website in browser? – SteMa Jul 14 '15 at 20:20

1 Answers1

3

It is a new feature in iOS9. It is explained in the WWDC15 talk Seamless linking to your App.

You could also add a small piece of javascript to each page that opens your custom URL-scheme.

Jasper
  • 6,693
  • 3
  • 32
  • 43
Mats
  • 8,136
  • 1
  • 24
  • 34