flutter-permission-handler
flutter-permission-handler copied to clipboard
On Dialog dismissed returns PermissionStatus.permanentlyDenied
🐛 Bug Report
I noticed strange behavior. When I dismiss a permission dialog it returns PermissionStatus.permanentlyDenied
Expected behavior
When dissmising a permission dialog it must return PermissionStatus.denied
.
Reproduction steps
-
final permission = await Permission.contacts.request()
- Dissmis dialog (tap on the grayed area) and check for permission status.
Configuration
Version: 8.3.0
Platform:
- [ ] :iphone: iOS
- [x] :robot: Android
the same to me
I have the same issue here.
Tested today with versions 9.2.0 and 10.0.0 and still have the same issue. Faced this problem on Android.
Here are some additional details I observed during my tests:
-
If the permission is set as "ASK EVERY TIME", or if I have never requested it before, when I dismiss the dialog I get PermissionStatus.permanentlyDenied.
-
Now if I have already requested and denied the permission one time already (not two), I dismiss the dialog I get PermissionStatus.denied.
Still an issue on latest 10.4.3 version