admin管理员组文章数量:1296488
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.
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.
Share Improve this question asked Feb 29, 2016 at 6:18 S_SS_S 1,4125 gold badges28 silver badges58 bronze badges 2- 3 It is a simulator and not a real device. Mail and the phone.app are not installed on the simulator, so you can't use them. Test your app on a real device! – Joerg Commented Feb 29, 2016 at 6:32
- 1 thats the missing feature of iOS Simulator.So try it with device. – Banik Commented Feb 29, 2016 at 10:43
1 Answer
Reset to default 11Restating the ments above - use a real device not the simulator.
本文标签: javascriptCordova iOS Simulator tel and mailto not workingStack Overflow
版权声明:本文标题:javascript - Cordova iOS Simulator tel and mailto not working - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741637934a2389747.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论