What path to use for webviewer for locally created files in iPhone iOS

For locally created file “test.html” I have tried the following using Companion app on iOS for iPhone and none work:

test.html
./test.html
http://localhost/test.html
file:///android_asset//test.html
file:///test.html

My code is:

What path do I need to use?

1 Like

As I just found out, it doesn't work with the compiled app (IPA).
There is a bug in the Webview component with local URLs.

I can’t even get this to work in Companion app:

I can’t get the filescope to work - tried both https://ai2a.appinventor.mit.edu and https://iosbuildservertest.appinventor.mit.edu/

Errors below from iosbuildservertest:

These blocks definitively work with Companion. Tested on several iOS devices:

The File.Scope block does not work, but you don't need it anyway.

Very strange, I connected companion app to project I had saved last week with the intention of attaching an exported aia file and iPhone version but my app worked without any changes - so no idea why it wasn’t working last week.