EddyVerbruggen / Custom-URL-scheme

:link: Launch your Cordova/PhoneGap app by a Custom URL scheme like mycoolapp://
1.03k stars 367 forks source link

Gmail strips the href from the button in my HTML email template #123

Closed bmwertman closed 8 years ago

bmwertman commented 8 years ago

I have not been able to get my app to launch directly from the email client(Gmail in my test case).

I am using the Mailgun api to send email confirmation emails. In my Mailgun HTML template I CAN successfully link to a page on my server which then has the correct href scheme to launch the app. And when clicked the app launches. But this seems messy and exposes my ip and port in the browser.

If I use the same href scheme directly in my Mailgun HTML template the button does nothing and opening the chrome inspector shows that there is no href on the anchor tag.

So my question is, is it possible to launch my app directly from chrome? And if so, although not directly related to the above. Can I add a json web token to the end of that href scheme that I can grab with the handleOpenURL helper function to send back to my server to mark the user's email as confirmed?

brianscroggins24 commented 8 years ago

I'm wondering about this issue as well. So far I've had to redirect my app to Safari on the iPhone and them redirect it again from the server calling the custom url scheme. This solution has not worked most of the time so i'm looking for another one. If email clients strip the url scheme how this issue be resolved?

gusleo commented 8 years ago

any updated for this issue?

santekotturi commented 8 years ago

any updates?

I'm using nodemailer to send a password reset link to the user which opens a view in my ionic/cordova app. Everything works on ios + mac-mail but gmail on android strips the href from my email. pasting the url into chrome performs a google search..

EddyVerbruggen commented 8 years ago

That's not something this plugin can change, right? I've found the only reliable way is redirecting to a webpage where the user can click a link.