How to get a universal link to open the app instead of safari?

Hazem Hagrass picture Hazem Hagrass · May 8, 2017 · Viewed 12.7k times · Source

I've been trying for a while now to get universal links of iOS10 to work but it's not working till now.

I have an apple-app-site-association configured. Have tried using the root domain, using a subfolder, on the same server or another. In all cases I am redirected to safari web page with a drop down to open my app as an option enter image description here What am I missing?

Answer

Tejas K picture Tejas K · Jun 29, 2017

After spending some time trying to configure Universal Links here is what I have learned so far:

1 - Universal Links DO NOT work with redirects or when you type your link in Safari address bar and hit enter.

2 - Type your address in Notes and click on it, if your app opens directly it means you have everything set-up correctly.

3 - Universal Links work when user performs an action on your website, to try this add a button to your website/blog and link it to the Universal Link implemented to open your app. Now open your website/blog in Safari, and click the button, it will directly open your app.

4 - When you click on 'Open' in Safari, subsequent calls won't open the app directly, for reasons mentioned in point 1.

Hope this helps :)