[英]Deep linking whatsapp inside cordova-Phonegap application
I'm building a cordova phonegap application on Android and I'm trying to enable the user to share through whatsapp. 我正在Android上构建cordova phonegap应用程序,并试图使用户能够通过whatsapp进行共享。 According to the Whatsapp FAQ the following code should work: 根据Whatsapp常见问题解答,以下代码应该有效:
<a href="whatsapp://send?text=Hello">CLICK</a>
But it does nothing. 但是它什么也没做。 How could this be? 怎么会这样 THank you in advance 先感谢您
You must add it as a whitelist intent (config.xml) 您必须将其添加为白名单意图(config.xml)
<allow-intent href="whatsapp://*" />
Make sure you have cordova plugin installed cordova-plugin-whitelist 确保您已安装cordova插件cordova-plugin-whitelist
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.