WebViewer vs CustomWebView

Hi,

i try to load a html-file with CustomWebView but getting an error Connection_Refused. Loading the file with WebViewer works.

Is it true that i cant load local files with CustomWebView?
My Blocks:

1 Like

Use FileAccess = true property block after setting webview id and before go to url block

blocks - 2022-04-12T120216.283

Same result.

Please add this to screen initialize

Same result, sorry.

CustomWebView does not offer that url to load assets.
Use file:///android_asset/ instead.

2 Likes

I believe this will work if tested as apk not with companion

3 Likes

Same result. Does not work.

Hey, thanx. Yes it works in akp, but only this version:
file:///android_asset/Sicherungen.html

Anyway, thanx for your help.

1 Like

If you want it to work also in the companion app, try the PathToAssets method from the tools extension App Inventor Extensions: Tools | Pura Vida Apps

Taifun

1 Like

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