首页 > 解决方案 > Whatsapp 链接

问题描述

我目前正在为客户开发一个网站,并且在 Iphone 上获取 whatsapp 链接时遇到了一些麻烦。有一个按钮应该将用户重定向到一个whatsapp号码,它正在我的电脑上做,但是当我把它带到我的iphone上时它突然不再工作了。关于正在发生的事情有什么想法吗?

<a id="app" target="_blank" href="https://wa.me/0896168600?text=I'm%20interested%20in%20man%20with%20a%20van"> <div class="whatsapp">
                <div class="left">
                <p>Contact on WhatsApp</p>
                <p>089 61 68 600</p>
            </div>
            <div class="right">
                <img src="/WhatsApp.svg.png" alt="">
            </div>
            </div>
</a>

以下是一些实际问题的图片,以及网站链接和用于编写代码的 whatsapp 文档。

https://i.stack.imgur.com/YW5nW.png
https://faq.whatsapp.com/iphone/how-to-link-to-whatsapp-from-a-different-app/?lang=en
https ://fiverrtestsite.netlify.app/

标签: androidhtmlioswhatsapp

解决方案


请在手机上试试这个

因此,对于丹麦号码 +45 1234 5678,它将是 4512345678将 45 更改为您的国家代码

<a id="app" target="_blank" href="whatsapp://send?phone=4512345678"> </a>

或者

<a id="app" target="_blank" href="https://api.whatsapp.com/send?phone=4512345678"> </a>

这仅适用于移动设备,不适用于台式机。您应该制作一个模式,以便在单击它时他们可以选择打开链接的移动版或桌面版。


推荐阅读