Cordova iOS Simulator tel和mailto无法正常工作 [英] Cordova iOS Simulator tel and mailto not working

查看:146
本文介绍了Cordova iOS Simulator tel和mailto无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在我的iOS Cordova应用程序上通过href发起呼叫和mailto.对于代码:

I am unable to initiate the call and mailto via href on my iOS Cordova app. For the code:

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

我在Xcode控制台中收到错误消息

I get the error in the Xcode console as

There is no registered handler for URL scheme tel.

与mailto相同.如何解决?我已经将它们添加到config.xml中.

Same for mailto. How can this be fixed? I've added these to 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"/>

我正在使用Cordova v6.0.0,Xcode v7.2.1并针对iOS v9.2进行开发.

I'm using Cordova v6.0.0, Xcode v7.2.1 and developing for iOS v9.2.

推荐答案

重新注释上面的注释-使用真实的设备而不是模拟器.

Restating the comments above - use a real device not the simulator.

这篇关于Cordova iOS Simulator tel和mailto无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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