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

[Regression]: PlatformException(PermissionHandler.PermissionManager, A requestfor permissions is already runningplease wait for it to finish beforedoing another request (note thatyou can request multiplepermissions at the same time)..null, null)

Open noProblemPromise opened this issue 1 year ago • 4 comments

Is there an existing issue for this?

Please select affected platform(s)

  • [X] Android
  • [ ] iOS
  • [ ] Windows

Old behavior

17611720421048_ pic_hd

Current behavior

code : if (Platform.isAndroid) { var status = await [Permission.camera, Permission.mediaLibrary].request(); if (status[Permission.camera]!.isDenied || status[Permission.camera]!.isPermanentlyDenied || status[Permission.mediaLibrary]!.isDenied || status[Permission.mediaLibrary]!.isPermanentlyDenied) { ViewUtil.show(context, message: "请授予相机权限!"); return; } }

Steps to reproduce

  1. request permissions
  2. no message

Code sample

Code sample
[Paste your code here]

if (Platform.isAndroid) { var status = await [Permission.camera, Permission.mediaLibrary].request(); if (status[Permission.camera]!.isDenied || status[Permission.camera]!.isPermanentlyDenied || status[Permission.mediaLibrary]!.isDenied || status[Permission.mediaLibrary]!.isPermanentlyDenied) { ViewUtil.show(context, message: "请授予相机权限!"); return; } }

Screenshots or video

Screenshots or video demonstration

[Upload media here]

Current version

11.3.1

Last version without regression

11.3.1

noProblemPromise avatar Jul 08 '24 08:07 noProblemPromise

vivo Y35 andorid 13

noProblemPromise avatar Jul 08 '24 08:07 noProblemPromise

click request IconButton, PermissionStatus is denied, but no message show.

noProblemPromise avatar Jul 08 '24 08:07 noProblemPromise

Dear @noProblemPromise,

Do you still have that issue?

Kind regards,

TimHoogstrate avatar Aug 05 '24 07:08 TimHoogstrate

Dear @noProblemPromise,

Do you still have that issue?

Kind regards,

Yes, while I've circumvented the issue for the time being, it still exists.

noProblemPromise avatar Aug 05 '24 08:08 noProblemPromise

Without additional information, we are unfortunately not able to resolve this issue. Therefore, we reluctantly closed this issue for now. If you run into this issue later, feel free to file a new issue with a reference to this issue. Add a description of detailed steps to reproduce, expected and current behaviour, logs and the output of 'flutter doctor -v'. Thanks for your contribution.

github-actions[bot] avatar Sep 02 '24 12:09 github-actions[bot]

this is andorid 13, some mobile.like vivo

noProblemPromise avatar Sep 05 '24 03:09 noProblemPromise