【发布时间】:2020-07-16 07:03:49
【问题描述】:
我想用 HTML redirect 自动打开 WhatsApp。使用 api.whatsapp 它会打开一个页面,用户必须单击“发送”或“消息”,我的想法是使用“whatsapp://send”之类的内容跳过此步骤。 有可能吗?怎么样?
此代码将打开whatsapp:
<a href="whatsapp://send?phone=0000000000&text=example">**App**</a></p>
但用户需要点击“App”按钮,我希望它通过链接自动重定向(例如 mydomain.com/redirectwpp)
<meta http-equiv='refresh' content='0; URL=https://api.whatsapp.com/send?phone=XXXXXXXXX'>
这是我在页面上使用的代码,它会自动重定向,但不会直接发送到 WhatsApp。
【问题讨论】:
标签: android html redirect whatsapp