google / accompanist

A collection of extension libraries for Jetpack Compose
https://google.github.io/accompanist
Apache License 2.0
7.31k stars 592 forks source link

[Permissions] Not seeing permission request dialog #1776

Closed fluxxion82 closed 1 month ago

fluxxion82 commented 1 month ago

Description I'm not seeing the permission request dialog when invoking "launchMultiplePermissionRequest()". I'm not sure if I'm doing something wrong or if this is a bug (I'm guessing the former). launchPermissionRequest() also doesn't work for me.

Steps to reproduce Create new android project. add accompanist permissions, copy paste RequestMultiplePermissionsSample code.

repro project: https://github.com/fluxxion82/permission_test

Expected behavior User should see the permission request dialog.

Additional context I've tested on a Pixel 4XL running Android 13, Pixel 8 running Android 14 and an emulated Pixel 7 running 14.

ianhanniballake commented 1 month ago

The READ_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE permissions do not have any effect on Android 13+ devices. As explained in the Android 13 behavior changes, you need to use the granular media permissions if you need any permissions at all for your use case (see the Storage Permissions page for more details).

Therefore you'd never see any permission request dialog for these permissions, whether you are using Accompanist or not.