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

Gallery permission appears a second time on Android when "allow limited access" option is already given once #1267

Open
MiroslavBlagoev opened this issue Feb 21, 2025 · 1 comment

Comments

@MiroslavBlagoev
Copy link

Version

3.6.4

Platforms

Android

Device Model

Pixel 7a (Android 14) , Pixel 4 (Android 15)

flutter info

flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.27.3, on macOS 15.3 24D60 darwin-arm64, locale en-US)
⢿^[[[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
[✓] Android Studio (version 2024.1)
[✓] IntelliJ IDEA Community Edition (version 2022.1)
[✓] VS Code (version 1.96.4)

How to reproduce?

On Android, permission dialog appears twice when "allow limited access" option is chosen.

  1. install photo_manager plugin as in the steps
  2. Request permissions with PhotoManager.requestPermissionExtend();
  3. The dialog will appear (first time)
  4. Click on "allow limited access"
  5. select a few photos
  6. click done
  7. click on a button that calls PhotoManager.presentLimited(); in order to select more photos
  8. The dialog will appear (second time)
permission.dialog.appearing.twice.mp4

Logs

Example code (optional)

@override
void initState(){
PhotoManager.requestPermissionExtend();
}

...

Gallery Button -> onTap: ()=> PhotoManager.presentLimited();

Contact

No response

@fluttercandies-dev
Copy link

AI Summary: On Android, the permission dialog appears twice when "allow limited access" is granted and presentLimited() is called to select more photos.

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

No branches or pull requests

2 participants