flutter-permission-handler
flutter-permission-handler copied to clipboard
[Question]: permissions in realtime
Please check the following before submitting a new issue.
- [X] I have searched the existing issues.
- [X] I have carefully read the documentation.
Please select for which platform(s) you need help
- [X] Android
- [X] iOS
- [ ] Windows
Your question
I need to track the changes on permissions.
The openAppSettings function returns a boolean, but using Permission.location.onDeniedCallback and the other callbacks does not seem to achieve this goal.
I have read the solution based on WidgetsBindingObserver and it obviously work but it seems a workaround.
Is there a more direct way to detect changes in the permission state based only on permission_handler package?
Version
11.3.1