【问题标题】:Whatsapp linkingWhatsapp 链接
【发布时间】:2021-12-20 22:05:29
【问题描述】:

我目前正在为客户开发一个网站,但在 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/

【问题讨论】:

    标签: android html ios whatsapp


    【解决方案1】:

    请在移动设备上试试这个

    所以对于一个丹麦号码 +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>
    

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-07-02
      • 2021-10-08
      • 2016-07-14
      • 1970-01-01
      相关资源
      最近更新 更多