Skip to content
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

[Bug]: Error when reopening app with non-standard launchMode and requesting permissions again on Android #1426

Open
3 of 5 tasks
mikolashka opened this issue Jan 15, 2025 · 0 comments

Comments

@mikolashka
Copy link

mikolashka commented Jan 15, 2025

Please check the following before submitting a new issue.

Please select affected platform(s)

  • Android
  • iOS
  • Windows

Steps to reproduce

  1. Set launchMode in the AndroidManifest to a value other than standard.
  2. Launch the application.
  3. Request permissions.
  4. Minimize the application.
  5. Reopen the application using the app icon.
  6. Request permissions again.

Expected results

A new system dialog requesting permissions is displayed.

Actual results

Error:

PlatformException(ERROR_ALREADY_REQUESTING_PERMISSIONS, 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)

Code sample

Permission.locationWhenInUse.request();

Screenshots or video

No response

Version

11.3.1

Flutter Doctor output

[✓] Flutter (Channel stable, 3.27.2, on macOS 15.1 24B2082 darwin-arm64)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.2)
[✓] Connected device (5 available)
[✓] Network resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant