Baseflow / Baseflow/flutter-permission-handler

[Bug]: photos permission always denied on iOS 18.5

Open
#1,478 8 comments 2 reactions 1 assignee Claimed by @TimHoogstrate View on GitHub
Dominant language
Dart
Stars
2.2k
Forks
970
Avg merge
14h 22m
Merged PRs (30d)
2

Description

### Please check the following before submitting a new issue.

- [x] I have searched the [existing issues](https://github.com/baseflow/flutter-permission-handler/issues).
- [x] I have carefully [read the documentation](https://github.com/Baseflow/flutter-permission-handler/blob/main/permission_handler/README.md) and verified I have added the required platform specific configuration.

### Please select affected platform(s)

- [ ] Android
- [x] 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!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.