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
Internal state were not reset after user's privacy settings reset #20
Comments
The problem is more generally, that the system does not inform apps about the privacy reset (other than changing the values of particular values, which might also be triggered by individual requests by the user). See also my question here: |
So unfortunately I would say that there is very little one can do. We currently do not use the |
We leave the method |
Or did I misunderstand your point? |
I agree, I don't use these methods. I'm just practicing the possible behaviors of the user. |
Indirectly, the reset can be determined by some key constants, for example, for a microphone is |
This needs to be handled on a case by case basis for each permission category. As there is no general way to determine that a reset occurred. |
I will look over the other categories to see if other changes are required. At least location request seem to have a similar issue in the edge case where whenInUse was granted and always permissions are requested. |
Meanwhile feel free t look over the linked pull request and check if that fixes your issue. I wanted to avoid resetting the internal state in a getter as this seems to be a bit counter-intuitive. |
The PR #21 also avoids setting the internal state in the first state on iOS8+ as it is no longer needed. |
Yes, I tested in particular with a microphone, seems no complaints. Thanks! |
#21 has been merged. which should fix this issue. |
Solution?
For microphone I changed code to
The text was updated successfully, but these errors were encountered: