moko-permissions icon indicating copy to clipboard operation
moko-permissions copied to clipboard

Allow limit access Gallery

Open konrad-thoc opened this issue 1 year ago • 3 comments

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.

image

konrad-thoc avatar Oct 08 '24 20:10 konrad-thoc

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)

hyak4j avatar Dec 12 '24 07:12 hyak4j

Im having the same problem in android flavor in a CMP. In iOS is working fine.

Kronos1993 avatar Jan 24 '25 17:01 Kronos1993

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" />

Kronos1993 avatar Jan 25 '25 00:01 Kronos1993