简体   繁体   中英

Custom Whatsapp URL Scheme Code in mail

is there a way to open in gmail? if i send this in an email:

<a href="whatsapp://send?text=wow%20check%20this%20out!%20http%3A%2F%2Fwww.zeemanshop.com%2Fassortiment%2Fheren">deel dit bericht via Whatsapp!</a>

deel dit bericht via Whatsapp!

If i send this to iphone mail it works, but gmail doesn't recognise this kind of custom scheme url. Is there a way to get this working without a safari/chrome redirect?

I think the issue is the 'intent' required from Android, see this similar post for more info on it - Sharing link on WhatsApp from mobile website (not application) for Android

try replacing your above link with:

<a href="whatsapp://send?text=wow%20check%20this%20out!%20http%3A%2F%2Fwww.zeemanshop.com%2Fassortiment%2Fheren" data-action="share/whatsapp/share">deel dit bericht via Whatsapp!</a>

Hopefully adding the 'data-action' property will solve the issue. I get the feeling that at least some of the email clients will not be able to use the link correctly due to the varied support across client though.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM