Open lovelyelfpop opened 1 year ago
I've seen this too I believe in version 7.0.
But the above change doesn't fix the call to resolveLocalFilesystemUrl
which still I see in the debug that has https://localhost/__cdvfile_content__/...
I think it has to do with the changes made in ContentFilesystem.java
. I still need to test this theory though...
If content is all that is missing and
else if (path.startsWith(LocalFilesystemURL.fsNameToCdvKeyword("content"))) {
targetFileSystem = "content";
}
is what is needed to add it, then PR would definitely be welcome.
I think this issue is also resolved with #534 which solves #525. I'm not sure though. All I know is that I'm currently using in production the branch in the PR in #534 and I would love it to be merged so I can use an official version and not a branch... Thanks!
When will this gets fixed?
I've created a pull request https://github.com/apache/cordova-plugin-file/pull/582
Bug Report
Problem
Android webview cannot display
<img>
with src="https://localhost/__cdvfile_content__/...
"What is expected to happen?
Android webview should display
<img>
with src="https://localhost/__cdvfile_content__/...
"What does actually happen?
ERR_CONNECTION_REFUSED in console,img not displaying
Information
<img>
with src likehttps://localhost/__cdvfile_asstes__/...
orhttps://localhost/__cdvfile_files__/...
can display in webview, but nothttps://localhost/__cdvfile_content__/...
,Environment, Platform, Device
Redmi K30 pro, Android 11
Version information
Cordova@11.0.0 Cordova-Android@10.1.2 cordova-plugin-file@7.0.0
Checklist
Reason
WebViewAssetLoader.PathHandler
incordova-plugin-file\src\android\FileUtils.java
missingcontent
uri handler.The right code is