-
Notifications
You must be signed in to change notification settings - Fork 374
Closed
Labels
Automation: triageTriaged automatically by our bot.Triaged automatically by our bot.Platform: AndroidSort: BUGawait triage
Description
Version
^3.7.1
Platforms
Android
Device Model
Redmi 11 Lite 5G NE
flutter info
[√] Flutter (Channel stable, 3.38.5, on Microsoft Windows [Version 10.0.19045.6466], locale fr-FR) [1 428ms]
• Flutter version 3.38.5 on channel stable at C:\flutter\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision f6ff1529fd (7 weeks ago), 2025-12-11 11:50:07 -0500
• Engine revision 1527ae0ec5
• Dart version 3.10.4
• DevTools version 2.51.1
• Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets,
omit-legacy-version-file, enable-lldb-debugging
[√] Windows Version (10 Pro 64-bit, 22H2, 2009) [3,9s]
[√] Android toolchain - develop for Android devices (Android SDK version 36.0.0) [8,8s]
• Android SDK at C:\Users\HP\AppData\Local\Android\sdk
• Emulator version 35.3.11.0 (build_id 12836668) (CL:N/A)
• Platform android-36, build-tools 36.0.0
• Java binary at: C:/Program Files/Android/Android Studio/jbr\bin\java
This JDK is specified in your Flutter configuration.
To change the current JDK, run: `flutter config --jdk-dir="path/to/jdk"`.
• Java version OpenJDK Runtime Environment (build 21.0.8+-14196175-b1038.72)
• All Android licenses accepted.
[√] Chrome - develop for the web [483ms]
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop Windows apps (Visual Studio Build Tools 2019 16.11.44) [479ms]
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools
• Visual Studio Build Tools 2019 version 16.11.35731.53
• Windows 10 SDK version 10.0.19041.0
[√] Connected device (4 available) [1 113ms]
• 2109119DG (mobile) • 8e67292d • android-arm64 • Android 14 (API 34)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19045.6466]
• Chrome (web) • chrome • web-javascript • Google Chrome 143.0.7499.193
• Edge (web) • edge • web-javascript • Microsoft Edge 141.0.3537.99
[√] Network resources [655ms]
• All expected network resources are available.
• No issues found!How to reproduce?
This bug is as simple as asking for permission to manage photos and videos from the PhotoManager.requestPermissionExtend().
I provided the logs from the code snippet that gives a clear picture for when we already have full access granted, yet, the plugin still thinks the access is limited while the Permission Handler plugin detects it's granted and not limited.
I feel like the PhotoManager plugin is caching the permission state and doesn't reflect any future permission changes that was made between the full access and limited after the first time the user picks one.
Logs
[permission state] PermissionState.limited
[permission handler] PermissionStatus.grantedExample code (optional)
final permissionState = await PhotoManager.requestPermissionExtend();
final permissionStateFromHandler = await Permission.photos.status;
log("$permissionState", name: "permission state");
log("$permissionStateFromHandler", name: "permission handler");Contact
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Automation: triageTriaged automatically by our bot.Triaged automatically by our bot.Platform: AndroidSort: BUGawait triage