Baseflow / flutter-permission-handler

Permission plugin for Flutter. This plugin provides a cross-platform (iOS, Android) API to request and check permissions.
https://baseflow.com
MIT License
2.05k stars 859 forks source link

[Question]: permissions in realtime #1374

Open MauroGentile opened 2 months ago

MauroGentile commented 2 months ago

Please check the following before submitting a new issue.

Please select for which platform(s) you need help

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