system.openURL

Hello , 

Im using corona (2013.2100)

Im trying to use this example  with no luck

system.openURL( “tel:123-456-7890” )

Any ideas?

Hi @maverick.st,

What device are you testing this on?

Best regards,

Brent

iphone 4s

Can you please post some code, so we can inspect? Also, please paste it between “lua” tags so it’s easier to read.

[lua] -- [/lua]

Thanks,

Brent

click on “text” call suppose to call the number in function , correct?

[lua]

local function callme()

    system.openURL( “tel:302108943068” )

end 

call = display.newText(“call”, 300, 310, 20, 50, “Helvetica Neue”, 13)

call:addEventListener( “tap”, callme )

[/lua]

This seems correct… if you add a print statement in that function, is it being shown in the Xcode Organizer “console” view when the device is linked up to the computer?

[lua]

local function callme()

   print(“THIS FUNCTION IS RESPONDING”)

   system.openURL( “tel:302108943068” )

end

[/lua]

Brent

actually i checked with print and the functions runs correct. But system.openURL( “tel:302108943068” ) not working

Is there any chance that you accidentally over-wrote the Corona system library with some reference/function?

Hi @maverick.st,

What device are you testing this on?

Best regards,

Brent

iphone 4s

Can you please post some code, so we can inspect? Also, please paste it between “lua” tags so it’s easier to read.

[lua] -- [/lua]

Thanks,

Brent

click on “text” call suppose to call the number in function , correct?

[lua]

local function callme()

    system.openURL( “tel:302108943068” )

end 

call = display.newText(“call”, 300, 310, 20, 50, “Helvetica Neue”, 13)

call:addEventListener( “tap”, callme )

[/lua]

This seems correct… if you add a print statement in that function, is it being shown in the Xcode Organizer “console” view when the device is linked up to the computer?

[lua]

local function callme()

   print(“THIS FUNCTION IS RESPONDING”)

   system.openURL( “tel:302108943068” )

end

[/lua]

Brent

actually i checked with print and the functions runs correct. But system.openURL( “tel:302108943068” ) not working

Is there any chance that you accidentally over-wrote the Corona system library with some reference/function?

I’m sorry to resurrect such an old thread but I’m experiencing the same issues, does anybody know what the solution to this is?

Hi @MatthewCharlesHarrop,

What is your specific issue? What devices are you testing on? We will need more information to begin assisting you.

Thanks,

Brent

Hi Brent,

After some tinkering we were able to get the system to work no problem. Thanks for your speedy reply! :slight_smile:

Just for future reference (For anybody that stumbles across this with a similar issue):
 

The system.openURL() doesn’t work on the xcode sim or ipad. This is probably down to the fact that they don’t have a ‘phone’ application.

I’m sorry to resurrect such an old thread but I’m experiencing the same issues, does anybody know what the solution to this is?

Hi @MatthewCharlesHarrop,

What is your specific issue? What devices are you testing on? We will need more information to begin assisting you.

Thanks,

Brent