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.02k stars 838 forks source link

[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) #1343

Closed noProblemPromise closed 1 week ago

noProblemPromise commented 2 months ago

Is there an existing issue for this?

Please select affected platform(s)

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 ```dart [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 commented 2 months ago

vivo Y35 andorid 13

noProblemPromise commented 2 months ago

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

TimHoogstrate commented 1 month ago

Dear @noProblemPromise,

Do you still have that issue?

Kind regards,

noProblemPromise commented 1 month ago

Dear @noProblemPromise,

Do you still have that issue?

Kind regards,

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

github-actions[bot] commented 1 week ago

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.

noProblemPromise commented 1 week ago

this is andorid 13, some mobile.like vivo