ImagePicker
ImagePicker copied to clipboard
Not working in android 33

Please find the attached Screenshot. It working fine on android 31. But when it switch to android 33. This show error on reading media file. Please check and verify.
Hello any idea? It's seam a permission problem
Hi guys, I don't have any device running api 33. So I test it on emulator but do not see any permission issue. It would be nice if you guys help me debug the error while I'm earning money to buy new device. Thanks a lot!
hi @nguyenhoanglam about test this issue you can start application accept permission (if you have any) and then go to settings of your app and remove permission.
You notice that permission are for you library not for the application so you can't resolve the issue
Got the Solution. You required extra permission for android Tiramisu (Android 13) Read Media Images
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="32" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="29" />
please check the @link
@aerocube-tech How did you solve it? I tried add READ_MEDIA_IMAGES permission into AndroidManifest and runtime asked on this permission but I am still getting blank screen like on screenshot above
@petrstetka This is how you set the permission in manifest.
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="32"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="29" tools:replace="android:maxSdkVersion"/>
and later you have to fork this library into your project and update permission request relevant sdk version. If still not get it please contact me on [email protected]
@aerocube-tech @jateengadhiya @ZoeVale @petrstetka Version 1.5.5 is available now. Please help me check it out and let me know if the bug is gone.
Sorry for letting you guys wait for so long... 😅
Ho @nguyenhoanglam i try in the afternoon. At a moment I resolve problems with a tricks.
On OnCreate I call my fun "checkPermission" so if there's some problems I resolve.
But it doesn't run if user go to steering's and toggle the permissions.
@zoelounge You can try v1.5.5 without using any tricks.
READ_EXTERNAL_STORAGE has been removed on Android 13. That's why the permission request always fails. So, I've added READ_MEDIA_IMAGES to support Android 13 or higher. Please check it out!
Ok I'll try it in the afternoon. Thanks so much for your job. 👍
@nguyenhoanglam Version 1.5.5 works for me on Android 13. Thank you! In my opinion, this issue can be closed and be considered as resolved.