nativescript-webview-interface icon indicating copy to clipboard operation
nativescript-webview-interface copied to clipboard

Not working on ios real device

Open bradrice opened this issue 7 years ago • 4 comments
trafficstars

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.

bradrice avatar Jul 27 '18 20:07 bradrice

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

codealvarez avatar Jan 30 '19 23:01 codealvarez

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

plaramee1 avatar Feb 12 '19 01:02 plaramee1

I have the same issue. Any update here?

d-a-p-h avatar Feb 18 '19 04:02 d-a-p-h

Hello, In iOS, the webview is restricted to not execute js code in local (via file://) unless add custom config, but I think since [email protected], NS have added the support for loading local file via file:// protocol. Please, verify with the latest webview in [email protected] 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.

tdhman avatar Apr 08 '19 14:04 tdhman