react-native-permissions: If RESULTS.DENIED, is there a way to tell if user manually denied?

2.2k Views Asked by At

I'm looking at the following Android Flow for react-native-permissions. RESULTS.DENIED can be returned either in the scenario Is the permission already granted -> NO or Is the permission still requestable -> YES. In other words, it will return RESULTS.DENIED both when the app first calls check() and when the user clicks deny.

Is there any way to distinguish between these two scenarios?

enter image description here

1

There are 1 best solutions below

1
On

When permission is DENIED, it continues to be requestable then the app can ask permission again with a popup permission modal.

In the worst-case scenario, when the user checks NO NOT ASK AGAIN, the permission is BLOCKED and not requestable anymore. If that happens, the app can ask a user to grant permission manually from app settings.