shripalsoni04 / nativescript-webview-interface

Plugin for bi-directional communication between webView and android/ios
MIT License
89 stars 35 forks source link

Not working on ios real device #37

Open bradrice opened 6 years ago

bradrice commented 6 years ago

I have my code running fine on ios in the simulator, but for some reason will not work on the real device.

I've created a playground:

https://play.nativescript.org/?template=play-ng&id=avDVF8&v=21

I'm trying to append html to the webview and then get the height of the body back so I can set my webview height in nativescript.

codealvarez commented 5 years ago

Hi guys! Any ideas for this issue? i have the same problem.

plaramee1 commented 5 years ago

I have the same issue. Any idea ? Can someone post a working example with angular 7?

d-a-p-h commented 5 years ago

I have the same issue. Any update here?

tdhman commented 5 years ago

Hello, In iOS, the webview is restricted to not execute js code in local (via file://) unless add custom config, but I think since tns@5.3, NS have added the support for loading local file via file:// protocol. Please, verify with the latest webview in tns@5.3 if it works. Otherwise, don't load local file directly to iOS webview, instead, create a local server that serve your www, then load the local server's url to your webview to test the code if it works.