简体   繁体   English

Cordova iOS模拟器tel和mailto无法正常工作

[英]Cordova iOS Simulator tel and mailto not working

I am unable to initiate the call and mailto via href on my iOS Cordova app. 我无法通过我的iOS Cordova应用程序上的href发起呼叫和mailto。 For the code: 对于代码:

<a href="tel:XXX">Call</a>

I get the error in the Xcode console as 我在Xcode控制台中收到错误

There is no registered handler for URL scheme tel.

Same for mailto. 对于mailto也是如此。 How can this be fixed? 怎么解决这个问题? I've added these to config.xml. 我已将这些添加到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"/>

I'm using Cordova v6.0.0, Xcode v7.2.1 and developing for iOS v9.2. 我正在使用Cordova v6.0.0,Xcode v7.2.1和针对iOS v9.2进行开发。

重述上述评论 - 使用真实设备而不是模拟器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM