CustomWebView Extension Local files Problem ACCESS_DENIED on Companion

Please , can someone explain why is this happening ?

Nothing changes when playing with Project Settings → General → Default File Scope and switching to App,Asset,Legacy etc.
Also switching paths in if screen.iscompanion makes no difference

Tetsing with Redmi Note 13 Pro Android Version 14

Any help is apreciated .

God Bless all

Check companion file path. I am not sure if it is correct.

Thanks for the fast reply !
As i said, switching the file paths in the blocks on if screen.iscompanion makes no diferrence.
What i am trying to say is that when using CustomWebViewer in companion doesnt work even if i put
the path file:///android_asset/index.html by hand … that in companion is working with Kodulars Webview !
Besides if the path was wrong shouldnt i expect a FILE_NOT_FOUND error and not ACCESS_DENIED ?
How would i could check the companions file path because i got this from older posts of the community

Starting from sdk 29 the assets for the companion app are stored in subdirectory assets of the ASD of the companion app

No, because you can’t access arbitrary directories anynore, see also Some basics on Android storage system

Taifun

1 Like

The problem was solved using http://localhost

image

1 Like