Skip to content

[Bug]: photos permission always denied on iOS 18.5 #1478

@maaanueeelll

Description

@maaanueeelll

Please check the following before submitting a new issue.

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!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions