cordova安卓手机<a href="tel:xxx"></a>无法进入拨号界面问题

  • 在使用cordova开发跨平台APP时,可能会用到点击某个按钮进入拨号界面的问题,HTML中的a标签提供了这个功能,但在部分安卓手机中却没有作用,点击没有反应,解决的方法如下:(在config.xml中添加如下几行配置文件)
<access origin="tel:*" launch-external="yes"/>
<access origin="geo:*" launch-external="yes"/>
<access origin="mailto:*" launch-external="yes"/>
<access origin="sms:*" launch-external="yes"/>
<access origin="market:*" launch-external="yes"/>

这样就OK啦!

原文地址:https://www.cnblogs.com/shizqiang/p/4449580.html