Please help with Webview

Hi, there.

I want to set web viewer on my app in iOS by Corona.

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”, system.ResourceDirectory)

webView:addEventListener( “urlRequest”, webListener )


And it works in Android and iOS simulator.

Just doesn’t work in real device-iPad.

How can I do this job?

Please help me with this.

Thank you.

Jacky

Assuming your webListener is valid then your code (as posted) will work just fine on device with a simple change

change

webView:request( "http://www.123contactform.com/form-2675144/Survey-Form", system.ResourceDirectory)

to

webView:request( "http://www.123contactform.com/form-2675144/Survey-Form")

seen as that URL is not local

Assuming your webListener is valid then your code (as posted) will work just fine on device with a simple change

change

webView:request( "http://www.123contactform.com/form-2675144/Survey-Form", system.ResourceDirectory)

to

webView:request( "http://www.123contactform.com/form-2675144/Survey-Form")

seen as that URL is not local