How to display iOS app's deep links on email as links
Asked Answered
L

2

6

I'm using deep linking for my react-native app to let user click on a link to open my app and perform some actions.

My problem here is when I send email (using <a href=""> tags and send the body as HTML) to user with these deep links (e.g myapp://profile?userId=123456), they are recognized as text instead of links by email clients, so at the moment my app users can't press on the "links" to open the app.

Lawless answered 29/10, 2018 at 1:56 Comment(2)
Send HTML email with explicit <a href=""> tags?Garv
Yes @ceejayoz, I was using email with explicit <a href=""> tag and sending the email body as HTML. Edited the questionLawless
L
17

I did some research and it turns out email clients like Gmail don't like links with abnormal protocol such as myapp:// and they will strip out those links from href attribute. My solution is to use another link which will eventually redirect the user to the deep link, for example: https://api.myapp.com/redirect?url={encoded-deep-link}

Lawless answered 2/11, 2018 at 6:43 Comment(0)
P
0

I think there is nothing wrong with your app but the issue is with the email client which sends the email as a plain text. Many clients don't send custom html code as an email. Thunderbird can send it though.

Protectionist answered 29/10, 2018 at 10:19 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.