cordova-plugin-ionic-webview icon indicating copy to clipboard operation
cordova-plugin-ionic-webview copied to clipboard

Images are not displayed when converted using the window.Ionic.WebView.convertFileSrc(filePath)

Open franferns opened this issue 4 years ago • 4 comments

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

image

index.js (file path exists)

image

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

image

source path for the img tag image

What else am i missing to get this to working ?

franferns avatar May 10 '21 10:05 franferns

any suggestion? The same problem. @franferns hi, you solved this problem?

evelas avatar Sep 17 '21 13:09 evelas

@evelas No, I downgraded the cordova-plugin-ionic-webview 2.5.3

franferns avatar Sep 17 '21 14:09 franferns

<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
	<application android:requestLegacyExternalStorage="true">
</edit-config>

evelas avatar Sep 20 '21 12:09 evelas

@evelas will break again on android 11 devices. https://stackoverflow.com/a/63365334/2797243

itsonit avatar Oct 04 '21 12:10 itsonit