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.
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}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With