Open fissionessi opened 3 years ago
same here too . My ionic version 5 and device poco x2 android 10 OS My error : After selecting image its showing like this "ErrorThe image file could not be opened"
same here too . My ionic version 5 and device poco x2 android 10 OS My error : After selecting image its showing like this "ErrorThe image file could not be opened"
The same error here: Android 10, Samsung A10.
After select images, it return "The image file could not be opened"
Same issue for me in android 10 and above
Same issue here
Same issue here with Android 10 and Samsung
I was able get it to work by adding this to the android platform section of config.xml:
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application" xmlns:android="http://schemas.android.com/apk/res/android">
<application android:requestLegacyExternalStorage="true" />
</edit-config>
We've detected that your app contains the requestLegacyExternalStorage flag in the manifest file of 1 or more of your app bundles or APKs.
Developers with apps on devices running Android 11+ must use Scoped Storage to give users better access control over their device storage. To release your app on Android 11 or newer after May 5th, you must either:
Update your app to use more privacy friendly best practices, such as the Storage Access Framework or Media Store API
Update your app to declare the All files access (MANAGE_EXTERNAL_STORAGE) permission in the manifest file, and complete the All files access permission declaration in Play Console from May 5th
Remove the All files access permission from your app entirely
For apps targeting Android 11, the requestLegacyExternalStorage flag will be ignored. You must use the All files access permission to retain broad access.
Apps requesting access to the All files access permission without a permitted use will be removed from Google Play, and you won't be able to publish updates.
I have another problem, Android filename has '%20' instead of ' ' (blank space) which prevents me from saving the image. I need to manually fileName.replace('%20', ' ') to have the ability to copy the file.
After click "Done", it directly goes to error part and error shows null. This is options object: IMAGEPICKEROPTIONS: any = { quality: 45, width: 1280, height: 1280, maximumImagesCount: 15, disable_popover: true }