Software Archive
Read-only legacy content
17061 Discussions

How to fix tel: on Android?

David_P_
Beginner
1,177 Views

I'm working with an app in HTML5 and i need to put a number for call,i put tel* and mailto* on build settings in network request and intent but doesnt work...my version of Cordova CLI is 4.5.1 and doesn't work

<a href="tel:+973510016>Call</a> <---on iOS works well but doesn't work on Android

on Android works the mail but not the dial

<a href="mailto:example@example.com">Send Mail</a><-----this works both on Android and iOS 

I need help for fix the call problem

Any help will be appreciated

0 Kudos
6 Replies
PaulF_IntelCorp
Employee
1,177 Views

I suspect you have a whitelist problem. Please see the XDK docs regarding whitelists and see the blank cordova template (create a project from it) for reference.

0 Kudos
David_P_
Beginner
1,177 Views

i still dont understand how to do it,i leave you a screenshot of my build settings...on Android only works the mail and iOS works mail and tel...Captura de pantalla 2017-04-05 a las 9.02.22.png

 

0 Kudos
PaulF_IntelCorp
Employee
1,177 Views

Those settings appear to be okay. Could also be the CSP rule in your index.html file. See the sample rules in that doc page I directed you to for help. Otherwise, you may have to do some debugging on your device with a built app. See this page for help with that > https://software.intel.com/en-us/xdk/docs/intel-xdk-debug-and-test-overview <

0 Kudos
Phil_P___Pete_
New Contributor I
1,177 Views

I don't email via my app but I do make phone calls.

In the Network Request fields in the XDK UI, all I have are my domain and Google (https://*.googleapis.com/* & https://*.gstatic.com/*)

For phone calls I use the Cordorva Call Number Plugin by Carlos Ferreyra.

I also suggest you edit your intelxdk.config.additions.xml and add:

<allow-intent href="tel:*" />

Vs. via the UI.

 

0 Kudos
Alex_Hang
New Contributor II
1,177 Views

If you just write the phone number / email as plain text (<p> or <h1> or <h2> etc) without using <a> elements in the page, when you tap on it the phone will automatically open the calling app / the mailing app, without adding plugins or Whitelist permissions ( I know that this is working in Android, I don't know if it works in IOS without plugins ).

Hope this helps you!

Alex Hang

0 Kudos
milan_j_
Beginner
1,177 Views

You can try out latest Vshare apk to fix the issue. I have also faced the same issue with Android app but When I issue, Vshare Its got fixed. Thanks Vshare.

0 Kudos
Reply