-
-
Notifications
You must be signed in to change notification settings - Fork 895
on android platform if i select denied and request permission again , it return exception message "request for permissions is already running" #950
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
How to solve this problem? Very worried! Thanks for your advice! |
when I am allow all the permissions than second time I am hit location function this errors comes in console |
same problem. I try to request microphone request. I allow it but package doesn't respond to me. |
I am having this same issue. what I trying to do is: PermissionStatus status = await Permission.locationWhenInUse.status;
if (status.isGranted) {
// location permission is GRANTED
print('===> permission GRANTED');
} else if (status.isDenied) {
// location permission is NOT GRANTED
await Permission.locationWhenInUse.request();
} else if (status.isPermanentlyDenied) {
// location permission is PERMANENTLY DENIED
openAppSettings();
} but it always throws exception on I am guessing that I tested an Android 13 & Android 11. same thing on both devices. |
Same problem with android and camera permission. First time requesting permission the popup is displayed. Then if we choose denied when we try later to request again the permission the popup is not displayed and the exception occurs. The problem doesn't occurs if the first time the popup is displayed we do not choose any option but have tapped outside the popup on the overlay. |
We are experiencing the same problem on some Android devices. Our code looks like this: Future<void> _showCameraPermissionDialog(BuildContext context) => showDialog<void>(
context: context,
builder: (context) => CameraPermissionDialog(),
);
Future<bool> handleCameraPermission(BuildContext context) async {
final cameraPermissionStatus = await Permission.camera.request();
if (cameraPermissionStatus.isGranted) {
return true;
} else if (cameraPermissionStatus.isPermanentlyDenied) {
await _showCameraPermissionDialog(context);
}
return false;
} |
Hi all! I'd like to know if this is still an issue on the latest version of the plugin (11.0.1). I have tested the code of @sjoerdlmkns in an emulator running Android 14 (API 34), but did not encounter any issue. You can find my example app in this gist: https://gist.github.com/JeroenWeener/461f1b42c1ccff9fb97764fff3b1f890 |
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. |
💬 Questions and Help
SOS!!! HELP!!! MOGUL!!!

on android platform if i select denied and request permission again , it return exception message "request for permissions is already running"
E/flutter (24097): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: PlatformException(PermissionHandler.PermissionManager, A request for permissions is already running, please wait for it to finish before doing another request (note that you can request multiple permissions at the same time)., null, null)
E/flutter (24097): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:607:7)
E/flutter (24097): #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:156:18)
E/flutter (24097):
E/flutter (24097): #2 MethodChannelPermissionHandler.requestPermissions (package:permission_handler_platform_interface/src/method_channel/method_channel_permission_handler.dart:71:9)
E/flutter (24097):
E/flutter (24097): #3 _TEstPermissionPageState._selectContact (package:digital_storage_app/mine/controller/test_test_permission_page.dart:116:50)
E/flutter (24097):
The text was updated successfully, but these errors were encountered: