简体   繁体   English

邮件中的自定义Whatsapp URL方案代码

[英]Custom Whatsapp URL Scheme Code in mail

is there a way to open in gmail? 有没有办法在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! 通过Whatsapp获得Deel dit bericht!

If i send this to iphone mail it works, but gmail doesn't recognise this kind of custom scheme url. 如果我将其发送到iPhone邮件,则可以使用,但gmail无法识别这种自定义方案网址。 Is there a way to get this working without a safari/chrome redirect? 有没有办法在没有野生动物园/ Chrome重定向的情况下使此工作正常进行?

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 我认为问题是Android的“意图”所必需的,有关此信息,请参阅类似的帖子- 从Android的移动网站(而非应用程序)共享WhatsApp上的链接

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. 我感到至少有一些电子邮件客户端由于各个客户端的支持不同而无法正确使用该链接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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