Issue using system.openURL

I’m trying to setup a button to dial a number.  It works in the simulator - well, sort of… it launches my Lync (MS Messenger) with the number I’m trying to reach but when I build the app and load it on my android phone, it doesn’t do ANYTHING.  I touch the button and nothing happens at all.

I’m calling it using:

system.openURL( "tel:610-555-1212" )

I’ve added android.permission.INTERNET - is there another permission I need to add?

Thank you!

John

Hi John,

Please see Google’s docs for a list of potential permissions:

http://developer.android.com/reference/android/Manifest.permission.html

Perhaps adding the “CALL_PHONE” permisison will work. If it does, can you please confirm so? I will then update the docs on that point.

Thanks,

Brent

It looks like that was the issue.  Even though technically, it is a HTML command - it requires the CALL_PHONE permission.

Thanks for confirming John, I’ll add a note to the documentation about that.

Brent

Hi John,

Please see Google’s docs for a list of potential permissions:

http://developer.android.com/reference/android/Manifest.permission.html

Perhaps adding the “CALL_PHONE” permisison will work. If it does, can you please confirm so? I will then update the docs on that point.

Thanks,

Brent

It looks like that was the issue.  Even though technically, it is a HTML command - it requires the CALL_PHONE permission.

Thanks for confirming John, I’ll add a note to the documentation about that.

Brent