Skip to content

[Android][expo-permissions] No ability to distinguish when a user has denied access with "Don't ask again" check #4289

@retyui

Description

@retyui

Feature Request - add ability to distinguish when a user denied access with 'Don't ask again' check

Expected Behavior

I can get a specific status when user press deny with 'don't ask again', like react-native Permissions API:

import { PermissionsAndroid, Platform } from 'react-native';

PermissionsAndroid.RESULTS.NEVER_ASK_AGAIN;

Actual Behavior

When user press "DENY", no matter the checkbox "Don't ask again" was set to the truth

We get the same result:

{
   expires:"never"
   status:"denied"
}

Reproducible Demo

// @flow
import {
  CAMERA,
  askAsync,
} from 'expo-permissions';

askAsync(CAMERA).then(result => {
	// ...
})

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions