Page 1 of 1

href=tel: does not work on Android app

PostPosted: Tue May 02, 2023 4:13 pm
by nic
I have created a new Android app using the Phonegap Build application, but now the "<a href="tel:06-12345678">call me</a> does no work. The same link works good on IOS app and in the browser. Also the mailto link does not work anymore.

Re: href=tel: does not work on Android app

PostPosted: Tue May 02, 2023 7:00 pm
by tnguyen
Hi, I think this has to do with some security route settings on the newer builds of android, they now restrict some of these things.

But you can do something like below with showUrl, use the '_system' parameter to get it to show up.

application.showURL('tel:12345678', '_system')
application.showURL('mailto:test@mnyemail.com', '_system')

Alternatively, in the newer phonegap version (v1.1.9) - with the browser plugin you can also do the following:

plugins.svyphonegapBrowser.openHrefTag('tel:12345678');
plugins.svyphonegapBrowser.openHrefTag('mailto:test@mnyemail.com');

Hope that helps!