Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

Check if a permission CHANGED in MultiplePermissionsReport? #263

Closed
carterhudson opened this issue Jun 16, 2020 · 1 comment
Closed

Check if a permission CHANGED in MultiplePermissionsReport? #263

carterhudson opened this issue Jun 16, 2020 · 1 comment

Comments

@carterhudson
Copy link

carterhudson commented Jun 16, 2020

I want to be able to check / request multiple permissions and receive a permission report that lets me examine whether the requested permissions have changed, rather than just what their current status is, since the listener gets triggered even if you're just using Dexter to check if you have permissions, and not necessarily requesting them. The purpose for this, in my use-case, is for hooking in analytics.

It seems like you can do this when requesting single permissions via onPermissionGranted & onPermissionDenied. Is there currently a way to do this when requesting multiple permissions?

Edit: I've implemented a workaround by not relying on Dexter for the initial permissions check. I manually check using the Android API first, and then only invoke Dexter if permissions are denied. This seems to give me the granularity I want, though I'd rather consolidate all of my permissions functionality to Dexter if possible. Perhaps the check() method should be request() instead?

@pedrovgs
Copy link
Contributor

pedrovgs commented Jul 7, 2020

Hi @carterhudson I'm afraid this feature you are requesting is too specific and I don't think we should add it to Dexter. The current library implementation is full of features and the scenario you mention seems to be too specific for us. Sorry.

@pedrovgs pedrovgs closed this as completed Jul 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants