flutter-permission-handler icon indicating copy to clipboard operation
flutter-permission-handler copied to clipboard

[Question]: permissions in realtime

Open MauroGentile opened this issue 1 year ago • 0 comments

Please check the following before submitting a new issue.

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

MauroGentile avatar Sep 05 '24 14:09 MauroGentile