system.openURL( "https://facebook/..." ) - gives warning and does not open browser

Hi,

I have issue on iOS 9 devices. I have below simple function that should open facebook page in browser, but it does not work. It works OK on simulator.

function welcomeSubScene:facebookButtonClicked()         system.openURL("https://www.facebook.com/SomePage") end

Following error is being displayed:

<Warning>: WARNING: system.openURL() failed to open URL: https://www.facebook.com/SomePage

Is there something that changed? Should I do something differently?

Cheers,

Radek

Please see:  https://coronalabs.com/blog/2015/09/17/about-app-transport-security-ats/

Rob

Hi Rob,

Thanks for quick reply. The thing is that I want to turn off the ATS in my app in order for vungle to work properly. My thinking was that this will fix the issue with facebook external URL as well.

Below is my config, to confirm turning off ATS setting.

&nbsp;&nbsp;&nbsp; -- &nbsp;&nbsp; &nbsp;-- iOS Section &nbsp;&nbsp; &nbsp;-- &nbsp;&nbsp; &nbsp;iphone = &nbsp;&nbsp; &nbsp;{ &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;plist = &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{ &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;NSAppTransportSecurity = &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{ &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;NSAllowsArbitraryLoads = true &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;},

Any other ideas?

Cheers,

Radek

Please see:  https://coronalabs.com/blog/2015/09/17/about-app-transport-security-ats/

Rob

Hi Rob,

Thanks for quick reply. The thing is that I want to turn off the ATS in my app in order for vungle to work properly. My thinking was that this will fix the issue with facebook external URL as well.

Below is my config, to confirm turning off ATS setting.

&nbsp;&nbsp;&nbsp; -- &nbsp;&nbsp; &nbsp;-- iOS Section &nbsp;&nbsp; &nbsp;-- &nbsp;&nbsp; &nbsp;iphone = &nbsp;&nbsp; &nbsp;{ &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;plist = &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{ &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;NSAppTransportSecurity = &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{ &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;NSAllowsArbitraryLoads = true &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;},

Any other ideas?

Cheers,

Radek