I am trying to view a HTML file, which is stored in my app directory according to scopped storage, The exact HTML file url is "file:///data/user/0/my.app.package/files/Download/page_1.html"
However, I am getting open failed: ENOENT (No such file or directory) error. Where I can see manually that the file exist at that path. My target sdk version is 30, Android 11 and I can't change it I need it working on android 11. How can I fix it?
What I have already tried
Added the following code to the manifest file
android:supportsRtl="true"
android:usesCleartextTraffic="true"
I am using webviewAssetLoader for the file loading ( working fine with html file from the assets ) but not with file from the app internal storage