-
-
Notifications
You must be signed in to change notification settings - Fork 903
Description
Please check the following before submitting a new issue.
- I have searched the existing issues.
- I have carefully read the documentation and verified I have added the required platform specific configuration.
Please select affected platform(s)
- Android
- iOS
- Windows
Steps to reproduce
iOS version 18.5
I noticed that when checking the status of photos.request() I get always permission permanently denied even if the permission is granted.
Expected results
expected result permission granted
Actual results
permission permanently denied
Code sample
Code sample
final status = await Permission.photos.request();
if (status.isGranted) {
debugPrint('Photos permission granted');
} else if (status.isDenied) {
debugPrint('Photos permission denied');
} else if (status.isPermanentlyDenied) {
debugPrint('Photos permission permanently denied');
openAppSettings();
Screenshots or video
Screenshots or video demonstration
[Upload media here]
Version
permission_handler: ^12.0.0+1
Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.32.4, on macOS 15.5 24F74 darwin-arm64, locale en-IT)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.3)
[✓] VS Code (version 1.101.0)
[✓] Connected device (4 available)
[✓] Network resources
• No issues found!