cordova-plugin-ionic-webview
cordova-plugin-ionic-webview copied to clipboard
Images are not displayed when converted using the window.Ionic.WebView.convertFileSrc(filePath)
I have created a cordova app with displaying of an image stored to the phone . Below is the code I use cordova version 10.0.0 cordova-android version 9.1.0
Plugins used cordova-plugin-ionic-webview 5.0.0 "cordova-plugin-ionic-webview" cordova-plugin-whitelist 1.3.4 "Whitelist"
the index.html is as follows

index.js (file path exists)

below is the output. The image exists and i have verified by manually navigating to the file path.

source path for the img tag

What else am i missing to get this to working ?
any suggestion? The same problem. @franferns hi, you solved this problem?
@evelas No, I downgraded the cordova-plugin-ionic-webview 2.5.3
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
<application android:requestLegacyExternalStorage="true">
</edit-config>
@evelas will break again on android 11 devices. https://stackoverflow.com/a/63365334/2797243