简体   繁体   中英

Cordova iOS Simulator tel and mailto not working

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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