OpenSooq / Gligar

📸Image Picker for Android, Pick an image from Gallery or Capture a new image with Camera.
https://engineering.opensooq.com
Apache License 2.0
158 stars 37 forks source link

Not working in Android 13 #34

Open dhavanikgithub opened 1 year ago

dhavanikgithub commented 1 year ago

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):

massimilianochiodi commented 1 year ago

Have same problem

bineshMobii commented 1 year ago

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

massimilianochiodi commented 1 year ago

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))