Problem getting white screen in WebView in iPhone

I am developing an app which has a website inside. The website can be seen in simulator, but not sure why when I test it on my iPhone, it just appears white screen. The iOS SDK is 9.2. Hope can get your help soon, thanks!

The code is like below:

local webView = native.newWebView( display.contentCenterX, display.contentCenterY, 320, 480 )

webView:request( “http://www.yahoo.com/” )

You are likely running into Apples ATS (Application Transport Security) additions they made in iOS 9. Basically you can’t get to http:// sites any more, only https:// unless you code in an exception in your build.settings.  Please see:

https://docs.coronalabs.com/guide/hardware/appleATS/index.html

for more details.

Rob

Thanks Rob Miracle, I can seen the web by changed the build.settings as below:

iphone =

{

plist =

{

NSAppTransportSecurity =

            {

    NSAllowsArbitraryLoads = true,

                },

            },

You are likely running into Apples ATS (Application Transport Security) additions they made in iOS 9. Basically you can’t get to http:// sites any more, only https:// unless you code in an exception in your build.settings.  Please see:

https://docs.coronalabs.com/guide/hardware/appleATS/index.html

for more details.

Rob

Thanks Rob Miracle, I can seen the web by changed the build.settings as below:

iphone =

{

plist =

{

NSAppTransportSecurity =

            {

    NSAllowsArbitraryLoads = true,

                },

            },