Can't get WebView to work on iOS.

Hello.

I’m trying to build a scene with one element, WebView. The scene will get a url through the params and will load the correct page. For some reason the page will not load on iOS devices and does not put out an error in the listener. The page DOES load on the emulator and on Android devices.

I’ve tried creating the most simple project with the a WebView, but still the same issue.

I’m using Version 2015.2786 (2015.12.12) and bulding for iOS 9.2 (also tried 9.1 and 9.0), can’t figure out what I’m doing wrong.

Code for simple project:

----------------------------------------------------------------------------------------- -- -- main.lua -- ----------------------------------------------------------------------------------------- -- Your code here webView = native.newWebView(display.contentWidth/2,display.contentHeight/2,display.contentHeight,display.contentWidth) webView:request("http://www.youtube.com/") function webListener(event) end webView:addEventListener("urlRequest",webListener)

thank you…

Try https://youtube.com

Rob

Thanks Rob, that did work.

However, Youtube is just a placeholder for my link. My real url doesn’t have the “https” option, which I believe is what solved the issue.

what can I do for my other url’s?

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

Thank you both for the fast response!

Much appreciated… :slight_smile:

Try https://youtube.com

Rob

Thanks Rob, that did work.

However, Youtube is just a placeholder for my link. My real url doesn’t have the “https” option, which I believe is what solved the issue.

what can I do for my other url’s?

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

Thank you both for the fast response!

Much appreciated… :slight_smile: