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

On Dialog dismissed returns PermissionStatus.permanentlyDenied

Open eli1stark opened this issue 2 years ago • 2 comments

🐛 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

  1. final permission = await Permission.contacts.request()
  2. Dissmis dialog (tap on the grayed area) and check for permission status.

Configuration

Version: 8.3.0

Platform:

  • [ ] :iphone: iOS
  • [x] :robot: Android

eli1stark avatar Dec 13 '21 18:12 eli1stark

the same to me

VovaMedvediev avatar Dec 15 '21 16:12 VovaMedvediev

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.

marcelo-bottoni avatar Jul 12 '22 16:07 marcelo-bottoni

Still an issue on latest 10.4.3 version

chilimsv avatar Jul 20 '23 11:07 chilimsv