Open umesh0492 opened 8 months ago
With dev.icerock.moko:media:0.11.0 dev.icerock.moko:media-compose:0.11.0
I think you need to add all permissions for all versions in the AndroidManifest of the Android app as in here:
<!-- Devices running Android 12L (API level 32) or lower -->
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="32" />
<!-- Devices running Android 13 (API level 33) or higher -->
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
<!-- To handle the reselection within the app on Android 14 (API level 34) -->
<uses-permission android:name="android.permission.READ_MEDIA_VISUAL_USER_SELECTED" />
That worked for me.
got that exception too, code to reproduce
picker.pickImage(MediaSource.CAMERA)
picker.pickMedia()
so exception happens when you try to use several pickers from the same composable, because pickerFragmentTag is always the same