Cordova iOS Simulator tel and mailto not working

懵懂的女人 提交于 2019-12-07 14:24:27

问题


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>

I get the error in the Xcode console as

There is no registered handler for URL scheme tel.

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"/>

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


回答1:


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



来源:https://stackoverflow.com/questions/35693079/cordova-ios-simulator-tel-and-mailto-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!