...">

Tel: href "Click to call" link does not work in Android

In my Android app from Cordova I have a link like this

<a href = "tel:011123456789">Click to Call</a>

This call link works on IOS as expected, but on Android the click prevents something like

11-26 11:13: 00.565: D / WebCore (18944): uiOverrideUrlLoading: shouldOverrideUrlLoading () returnstrue

this is my log cat result when the phone number link is clicked and the redirect does not work.

Also I tried javascript to override the redirect, but that didn't work either. Please help me find a solution.

I am using Cordova 3.6

+3


source to share


1 answer


These problems can occur due to the codelist access permission. You can specify access in Config.xml file like

 <access origin="tel:*" launch-external="yes" />

      

Cordova 3.6.3 includes some security updates.

Security fixes include creating a new whitelist for protocols other than http / s. If your application uses other protocols besides http: // and https: //, such as sms :, mailto :, geo :, etc., you will need to make some configuration changes to whitelist those protocols.



<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 the following details to your Config.xml

Just read more Cordova-Android Security Update

+20


source







All Articles