Select to view content in your preferred language

Request gallery permission for Android 13

864
0
11-28-2023 06:32 AM
arc_ticodex
New Contributor III

I have an app developed in appstudio with qml and I need to maintain the gallery access permission.

I was reading that for Android 13 the way to request the gallery has changed. In the Android Developers community it's indicated to call it MediaStore.Images, but I'm having trouble implementing it in qml.
https://developer.android.com/training/data-storage/shared/media?hl=pt-br#storage-permission

In appinfo.json in the "capabilities" I declared "mediaStoreImages": true and I'm using the constant Permission.PermissionTypeMediaStoreImages which represents the permission to access images in the gallery.

However, when I open the app, the gallery permission is not required.

Has anyone experienced this?

0 Kudos
0 Replies