OpenSooq/Gligar

Not working in Android 13

dhavanikgithub opened this issue · 3 comments

Describe the bug
Images is not visible and print snack bar The permission to access Files is not granted, please go to settings to grant it

Screenshots
image

Smartphone (please complete the following information):

  • Device: OnePlus Nord CE 3 Lite
  • OS: Oxigene

Have same problem

Still, this same issue is there. I cannot able to open Gallery due to this. Please reply once fixed this.

Use android native picker :

private val pickMultipleVisualMedia = registerForActivityResult(
        ActivityResultContracts.PickMultipleVisualMedia(
            Costanti.NUMERO_IMMAGINI_CENSIMENTO
        )
    ) { uris ->
        // Process URIs
        Timber.d("Photo Picker URIs count", uris.size)
        dagalleria(uris)
    }
    
pickMultipleVisualMedia.launch(PickVisualMediaRequest(ActivityResultContracts.PickVisualMedia.ImageOnly))