Allow limit access Gallery
When a user selects the option to limit access to galleries and chooses the photos of interest, they encounter a DeniedAlwaysException error, even though the user should get granted access.
I have a same question. Although the user allow limited access of photos, the granted is still false. The ask permission process do one more time and get DeniedAlwaysException.
val granted = permissionController.isPermissionGranted(Permission.GALLERY)
Im having the same problem in android flavor in a CMP. In iOS is working fine.
I found my error today. it was my manifest permission. Try add this to use gallery:
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES"/> <uses-permission android:name="android.permission.READ_MEDIA_VIDEO"/> <uses-permission android:name="android.permission.READ_MEDIA_AUDIO"/> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="32" />