native.newwebview doesn't work.

Hello, there.

 

I have one problem with my first Corona app.

 

In my app, there is one webview controller that shows other site’s page.

 

https://www.dropbox.com/s/ogch8mud6nefpj0/webview_1.png?dl=0

 

Please check my screen shot- this is Corona simulator and it works well in Corona simulator.

 

But when I build to XCode simulator or iPad, it doesn’t work-just show blank white square.

Please check the next attachment-that is for XCode simulator.

 

https://www.dropbox.com/s/3tub8hhr3tn2c59/webview_2.png?dl=0

 

And this is the source code of that part.

 webView = native.newWebView( display.contentWidth/2, display.contentHeight/2 + 20, 300, 300 ) webView:request( "http://www.123contactform.com/form-2675144/Survey-Form") webView:addEventListener( "urlRequest", webListener )  

If you know this problem, please tell me why and help me to solve this problem

Thank you.

Jacky

Have you enabled transport Security in your plist

NSAppTransportSecurity = { NSAllowsArbitraryLoads = true },

Without this you can’t go to an insecure website on the device

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

Rob

Also please only post your question once. I’ve deleted your duplicate post.

Thanks

Rob

Have you enabled transport Security in your plist

NSAppTransportSecurity = { NSAllowsArbitraryLoads = true },

Without this you can’t go to an insecure website on the device

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

Rob

Also please only post your question once. I’ve deleted your duplicate post.

Thanks

Rob