Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 466
Hazem Hagrass Avatar asked May 08 '17 08:05

Hazem Hagrass


2 Answers

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 :)

like image 70
Tejas K Avatar answered Oct 05 '22 13:10

Tejas K


You have probably tapped a small button on the device status bar while using the app, that led you back to the web site. Once you do that, the system would remember that and would always launch Safari when a universal link to your app is tapped. To undo that, long-tap the link, and in the menu that pops up, choose "Open with [your app]"

like image 44
Arik Segal Avatar answered Oct 05 '22 11:10

Arik Segal