Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open app when tapping website URL from email

When my users receive an email from us, I want them to be able to tap the link in that email and open our app.

This is NOT a custom URL scheme, but just a link to our website. So, if the user tapped the link www.mysite.com?data=123, how can I make iOS know that my app handles all www.mysite.com URLs in my app instead of opening Safari?

like image 209
Nic Hubbard Avatar asked Oct 24 '25 14:10

Nic Hubbard


1 Answers

You can definitely do this, as of iOS 9.

Universal Links are what you want to setup. Please note that you must own the site or have administrator access for this to work. Apple documentation.

For completeness, you can also do the same on Android, as of 6.0. The term in Android world is App Links. App link tutorial.


Minor note on implementing this. From experience, the link may not work through every email client or iOS app. E.g. opening the link in an email client other than Mail may or may not open your app correctly. Some apps may open the link in Safari.

Also, I've never used this, but https://branch.io is a service that does all sorts of deep linking wizardry for you. Have heard good things, if you want a more thorough solution this could be worth looking into.

like image 78
Jordan Smith Avatar answered Oct 27 '25 02:10

Jordan Smith



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!