href=tel: does not work on Android app

Questions and answers on developing, deploying and using plugins and JavaBeans

href=tel: does not work on Android app

Postby nic » Tue May 02, 2023 4:13 pm

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.
nic
 
Posts: 21
Joined: Fri Nov 16, 2018 10:54 am

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

Postby tnguyen » Tue May 02, 2023 7:00 pm

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!
tnguyen
 
Posts: 16
Joined: Mon Sep 29, 2014 8:40 am


Return to Plugins and Beans

Who is online

Users browsing this forum: No registered users and 6 guests