Phone Calls - Forum

Forum Navigation
You need to log in to create posts and topics.

Phone Calls

I have looked and can't see anything in this area. I am trying to tell the phone in an app to call the number that will be displayed on screen after a look up from a database. Is there a command that can request1 the phone to call a number from a text box?

I presume you would get a dialog box asking to confirm which would be fine, just need the phone to present the option to call the number shown.

Thanks.

First install this plugin moreEvent  and then use the below command:

phoneCalling "[phoneNumberHere]"

 

Vadim has reacted to this post.
Vadim

Fantastic thank you. Just what I need.

 

I have tried this and used a variable that contains the number.

phoneCalling "[CENTPHONE]" Then variable works as the number is displayed.

Nothing happens on the phone when you run the script. Does this work on IPhone?

I have added the plugin and it recognised the command as its blue.

Thanks for your help.

 

Please ignore.... works well. I forgot the clear cache before testing!

 

Hi I have already tested in android it works nice, but i did not tested on iPhone yet, but should be work on iPhone also.

add this code in project>properties>platforms option> additional Config.xml.

<preference name="PreferredContentMode" value="mobile" />

and then put something like this for phone Calling button:

SetVar [phoneNumber] "+9182...."
phoneCalling "[phoneNumber]"

or use this code:

BEGINJS
window.open('tel:123123123', '_self');
ENDJS

 

Thank you! Great Info.

It does work on Iphone too :-)

Need to figure out how to launch the Google Maps app (or the one installed) pre-loaded with address next :-)

Thanks again!