ERR_ACCESS_DENIED error when opening local .HTML file in WebView

1264
1
11-23-2022 09:02 AM
AdamDrackley
Occasional Contributor III

In our latest AppStudio build for Android (built via Appstudio v.5.4.142), when we try to open a local .HTML file within a WebView, the app presents us with an ERR_ACCESS_DENIED error, which I believe is related to the Qt issue below.  This functionality worked without issue in previous releases (Though I think the last successful build was via a 4.x. AppStudio release).

 
I was curious if this issue was on the AppStudio team's radar for an upcoming release, many thanks,
0 Kudos
1 Reply
TrevorFrame
Esri Contributor

Hi @AdamDrackley,

Adding information already provided to you in a side conversation for others to see. I hope my suggestion works for you. 

I did test this and was unable to reproduce the issue. Can you make sure it’s loading like how it’s being implemented in our Quick Report template?

You can find it in /controls/WebPage.qml in function loadLocalHtml().

If this still isn’t working, try setting the targetSDKVersion to 29 in appinfo.json.

"deployment": {

        "android": {

            "compileSdkVersion": 29,

            "targetSdkVersion": 29

        },

The bug report states it is only affecting targetSdkVersion 30 and not 29.

Best,

Trevor

0 Kudos