Baseflow / Baseflow/flutter-permission-handler

[Bug]: CalendarFullAccess status is always denied in iOS 17+

Open
#1,306 8 comments 0 reactions 1 assignee Claimed by @mvanbeusekom View on GitHub
P2 platform: ios
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

1. Use `await Permission.calendarFullAccess.request();` to get calendar permission.
2. Check `await Permission.calendarFullAccess.status;`

### Expected results

`await Permission.calendarFullAccess.status;` should return granted when permission is granted by user.

### Actual results

`await Permission.calendarFullAccess.status;` returns denied.

The result is the same even if the user permanently denies the permission.

### Code sample

Code sample

```dart
await Permission.calendarFullAccess.request();

// On next app run or on another page
final status = await Permission.calendarFullAccess.status;
if (status == PermissionStatus.permanentlyDenied) {
await openAppSettings();
} else {
await Permission.calendarFullAccess.request();
}
```

### Screenshots or video

_No response_

### Version

11.3.1

### Flutter Doctor output

Doctor output

```console
[✓] Flutter (Channel stable, 3.19.5, on macOS 14.4 23E214 darwin-arm64, locale en-IN)
• Flutter version 3.19.5 on channel stable at /Users/viplavrawal/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 300451adae (2 weeks ago), 2024-03-27 21:54:07 -0500
• Engine revision e76c956498
• Dart version 3.3.3
• DevTools version 2.31.1

[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at /Users/viplavrawal/Library/Android/sdk
✗ cmdline-tools component is missing
Run `path/to/sdkmanager --install "cmdline-tools;latest"`
See https://developer.android.com/studio/command-line for more details.
✗ Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 15E204a
• CocoaPods version 1.15.2

[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)

[✓] VS Code (version 1.87.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.84.0
```

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.