Software Archive
Read-only legacy content
17061 Discussions

Problem to open the dialing screen

Leandro_M_1
Beginner
255 Views

Good day,
In an application return data from some restaurants
I would like to create a function that when you click on the phone number automatically dialed this number.
With the function below, is working on intel XDK, but to compile and install on Android, is not calling the dialer screen.

function call (number) {

var str = numero.trim (); window.open ('tel:' + str, '_SYSTEM');

}

thank's

0 Kudos
3 Replies
Swati_S_Intel1
Employee
255 Views

Hi Leandro,

Before you build the application do the following:

On the Projects page, under Build Settings for the platform you are building for:

1. Check the box "Allow external application to launch from this domain?" 

2. In the Domain List input box, put tel:*

 

Swati

0 Kudos
Leandro_M_1
Beginner
255 Views

Hi
Thank you, now is working perfectly.
I appreciate the help.

0 Kudos
Rethinavel_M_
Beginner
255 Views

Thank you so much... its working..!!!!

0 Kudos
Reply