javascript - tel: href "Click to call" link not working in Android -
in cordova android app have link this
<a href = "tel:011123456789">click call</a>
this click call link working in ios expected, in android click preventing like
11-26 11:13:00.565: d/webcore(18944): uioverrideurlloading: shouldoverrideurlloading() returnstrue
this log cat result when clicked on phone number link , redirection not working.
also tried javascript click override redirection, not worked. please me find solution.
i using cordova 3.6
this issues may due cordova whitelist permission issue. can specify access in config.xml file like
<access origin="tel:*" launch-external="yes" />
in cordova 3.6.3 update there security update.
the security fixes involves creating new whitelist non http/s protocols. if application uses other protocols besides http:// , https://, such sms:, mailto:, geo:, etc., need make configuration changes add these protocols whitelist.
<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"/>
add these following config.xml
just read more cordova-android security update
Comments
Post a Comment