Bundled html files cannot be loaded to a webview

Expanding on this other issue, accessing the asset with its uri works fine, but using localUri returns an asset that begins with asset:// instead of file:// and a Webview will not load it.

Because testing this requires packaging the app it’s extremely painstaking to troubleshoot this by trial and error. Is there some way to bundle required html files into the app itself without need for downloading?

1 Like

Actually it would appear that Webviews won’t load file:// either, even if I specify it in originWhitelist.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.