React-native-permissions: Request multiple android permissions in same dialog

Created on 17 Oct 2019  路  6Comments  路  Source: zoontek/react-native-permissions

Feature Request

Allow to request multiple android permissions in one dialog.

Why it is needed

Common pattern in android is request multiple permissions in one dialog. For example, if you need to take a photo, you need to access CAMERA and EXTERNAL_STORAGE. This is already implemented in PermissionsAndroid RN module: https://facebook.github.io/react-native/docs/permissionsandroid#requestmultiple

Possible implementation

We can dig into RN module to get code from that.

feature request

Most helpful comment

I understand this is not always a good UI pattern, I just wanted to mention that I have had a project where I was specifically asked to pop a request for all the permissions at once. You never know what a business user wants :-). So I think it's a valid feature request if that's worth anything. Cheers

All 6 comments

@Strate A recipe already exists for this: https://github.com/react-native-community/react-native-permissions#request-multiples-permissions

The only difference is that it will not display the total numbers of permissions (2 of 2 on this screenshot)

Ev2uO

But it works on iOS.

@zoontek yes, sequentially requesting permissions is solution for now.

But this FR addressed to display total number of permissions in android.

I understand this is not always a good UI pattern, I just wanted to mention that I have had a project where I was specifically asked to pop a request for all the permissions at once. You never know what a business user wants :-). So I think it's a valid feature request if that's worth anything. Cheers

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

Shipped in the last version 馃帀

Was this page helpful?
0 / 5 - 0 ratings