android - 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/
解决方案
请在手机上试试这个
因此,对于丹麦号码 +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>
这仅适用于移动设备,不适用于台式机。您应该制作一个模式,以便在单击它时他们可以选择打开链接的移动版或桌面版。
推荐阅读
- reactjs - 为什么在带有 Webpack5 的 nextjs 应用中没有应用 Ant design less 样式?
- excel - 返回基于多个输入的依赖列表
- ios - 异步代码完成后如何运行代码,Swift
- python - Python 中的 XML 选择
- kotlin - Kotlin 是否允许对测试类使用反引号名称?
- python - 有没有办法让我的代码更快地读取 excel 文件?
- version-control - 将 perforce 中未跟踪的文件夹和文件设置为可写
- node.js - MongoDB 更新数组数组中的文档字段
- arrays - 如何在 Angular mat-table 中放置不同的按钮?
- arrays - Ada 动态分配数组中的数组无法在编译时初始化