Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle "don't ask again" #1

Open
eygraber opened this issue May 29, 2017 · 1 comment
Open

Handle "don't ask again" #1

eygraber opened this issue May 29, 2017 · 1 comment
Assignees

Comments

@eygraber
Copy link

If a user denied a permission, and checked the "don't ask again" checkbox, then shouldShowRequestPermissionRationale will return false. This only applies if the permission was already requested (because of the permission wasn't requested yet it'll also return false).

It would be cool to access that information from this library.

@vuksa vuksa self-assigned this May 29, 2017
@vuksa
Copy link
Owner

vuksa commented May 29, 2017

Hi @eygraber,

I'm aware that shouldShowRequestPermissionRationale function will return false for first permission request and for situation where "don't ask again" checkbox is checked. In order to distinguish if false value is returned because of checkbox or because of first permission request, app needs to have some inner state(flag isFirstPermissionRequest) and needs to handle changes of this state.

Since I designed this extension functions to be stateless this will require some bigger changes in design.

I'll definitely take a look at how to provide this information in one of future versions of the lib, since this would be a really good enhancement.

Thanks for suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants