Conditional Deep Link or Email URL

Is it possible to send an email (HTML) with links so that if the user reads the email on his iPhone, the links will send it to our application, but if he reads the email on the computer, will the links open in a browser?

Our application has already implemented deep binding. Any hacky workaround would be appreciated as well :)

+4
source share
2 answers

It’s best to link to the URL of your own server that is trying to open the application if you are on an iPhone. Safari requires a return path, but it will work. You may have a page attempt to open the application, and if Safari is still open after 2 seconds, assume that it failed and redirected to the mobile site. This redirect trick is in this answer .

+5
source

I would recommend checking out Deep Linking solution for Branch! You can create links that direct users to different places - mobile network, application, desktop - depending on the user's current device.

You can learn more here → https://branch.io/how-branch-links-work/

0

Source: https://habr.com/ru/post/1541168/


All Articles