Forum Xamarin Xamarin.iOS

Showing local animations with WKWebView

RicheyMBRicheyMB Member ✭✭

I have a requirement to show local HTML files, which contain animations and are stored in an encrypted .zip file.

I extract the relevant directory, which contains an index.html and a script.js file, to a temp directory.

I then navigate to the index.html file with

_webView.LoadFileUrl(index, tempDirectory);

This shows the index.html file, but does not appear to execute any javascript. It just hangs on a loading screen.

If I copy the temp directory from my test device to my machine, opening index.html renders correctly.

What am I missing ?



Sign In or Register to comment.