googlesamples/easypermissions

Support asking for permissions again after returning from permissions settings

Open

#301 opened on Mar 10, 2020

View on GitHub
 (6 comments) (0 reactions) (0 assignees)Java (9,780 stars) (1,486 forks)batch import
help wantedtype: feature request

Description

Basic Information

Device type: Emulator OS version: R DP1.1 EasyPermissions version: 3.0.0

Describe the problem

EasyPermissions should offer a facility to automatically request a permission again after a user has returned from manually adjusting app permissions in the app info permissions settings dialog.

In Android R DP1 a user may select "Ask every time" in the permissions settings dialog. (Corresponding to the new "Only this time" option in the regular permissions dialog.) This does not automatically grant the permission to the app, but requires another permission request from the app and affirmative response from the user before the permission is actually granted. It should be possible to recognize the user's return to the app via onActivityResult, and any needed subsequent workflow should be facilitated by EasyPermissions.

Contributor guide