System.openurl In Xcode Ios Simulator Doesn't Work

I’m using build 1061 and am trying to open a url in the browser. It works on the Android device, but it’s not working on the XCode iOS Simulator. I can’t get the app on an actual device right now, but is there something I have to do for iOS devices to get this call to work?

This should work as you expect it too.  What is the URL?  Can you post some code?

Hi Rob. It is just a simple test project that I was putting together. Here is the code.

local open = display.newRect(100,100,100,100) count = 0 local countd = display.newText(count,100,80) function open.o (event) system.openURL("www.google.com")   count = count + 1   countd.text = count end open:addEventListener('tap',open.o)

try putting an http:// in front of the URL. 

And that did the trick! I guess Android devices don’t care about that protocol part, but I suppose it’s good practice to put that in there anyways.

Thanks!

This should work as you expect it too.  What is the URL?  Can you post some code?

Hi Rob. It is just a simple test project that I was putting together. Here is the code.

local open = display.newRect(100,100,100,100) count = 0 local countd = display.newText(count,100,80) function open.o (event) system.openURL("www.google.com")   count = count + 1   countd.text = count end open:addEventListener('tap',open.o)

try putting an http:// in front of the URL. 

And that did the trick! I guess Android devices don’t care about that protocol part, but I suppose it’s good practice to put that in there anyways.

Thanks!

I have the same problem…system.openURL( “tel:xxxxxx”) in Android works normal but in ios not work. How do I solve it?

I have the same problem…system.openURL( “tel:xxxxxx”) in Android works normal but in ios not work. How do I solve it?