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
Anke
November 1, 2026, 7:23am
3
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:
Anke
November 2, 2026, 9:58am
5
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.