WhatApp单击以聊天链接不适用于OSX本机客户端和WhatsApp Web [英] WhatApp click to chat links do not work with OSX native client and WhatsApp Web

查看:207
本文介绍了WhatApp单击以聊天链接不适用于OSX本机客户端和WhatsApp Web的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Whatsapp链接问题

已安装WhatsApp本机OSX应用程序或打开了Web应用程序,但是链接无法在OSX上的本机应用程序中打开,并且如果尝试在Web应用程序中打开,则总是尝试吃午餐.

WhatsApp native OSX app is installed or web-app is opened but links can’t open in native app on OSX and always tries to lunch a new web app if try to open in web app.

地区:美国南部

浏览器:谷歌浏览器

我们使用WhatsApp链接-点击聊天功能-通过我们快速向客户发送消息管理面板.

We use WhatsApp links - Click to chat feature - to message customers quickly from our admin panel.

在最近的几天里,WhatsApp似乎更新了一些内容,并在一夜之间断开了链接.

In the last days as it seems WhatsApp has updated something and broke the links overnight.

我们以前使用的两种格式似乎都不起作用:

Neither of the formats we used previously seem to work:

https://wa.me/<number>
https://api.whatsapp.com/send?phone=<number>

如果我们尝试打开与WhatsApp客户端OSX的链接:

If we try to open links with WhatsApp client OSX:

未安装OSX

如果我们尝试使用WhatsApp Web客户端打开链接:

If we try to open links with WhatsApp Web client:

将在新标签页/窗口中启动其他实例并加载几秒钟

Will launch other instance in a new tab/window and loads for seconds

推荐答案

对于使用此功能的用户(例如我们)来说,这非常烦人,我将把发现留在这里:

As it is extremely annoying for those who use this feature (like us), I'm going to leave my findings here:

打开控制台显示,格式存在问题,因为它不请求打开本机应用程序的权限,因为在尝试重定向到以下链接时,它会制止内容安全策略中的某些内容:whatsapp://send /?phone =

Opening up the console revealed that there is a problem with the format as it does not request permission to open the native app, since it brakes something in content security policy when trying to redirect to the following link: whatsapp://send/?phone=

解决方案:

使用自定义网址格式- whatsapp://send/?phone =& text& source& data

USE THE CUSTOM URL SCHEME FORMAT - whatsapp://send/?phone=&text&source&data

使用此功能,浏览器将能够请求打开本机应用程序的权限.如果您接受一切顺利的话.

With this the browser will be able to request permission to open the native app. If you accept all works smooth.

这篇关于WhatApp单击以聊天链接不适用于OSX本机客户端和WhatsApp Web的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆