-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS 17 PlatformException(500, That account does not allow calendars to be added or removed., null, null) #490
Comments
@Allenxuxu please add steps to reproduce your issue. What didi you do that caused this exception? What did you expect should have happened instead if everything worked correctly? |
In iOS17, if you call
In other version iOS, it works well. |
is there some API or permission changes to ios17? |
I have same issue... |
@IVLIVS-III i think it is related to below. |
@builttoroamadmin This seems very important. We probably need an update. |
@IVLIVS-III or @builttoroamadmin is it possible to help here ? |
I tested it, as long as I give the APP full permissions in the settings (full access to events), I can use it normally. |
any update on this ? |
@kalismeras61 You can try it by the following steps.
|
@Allenxuxu I just tested the example app (current state of
What did you do differently? A screen recording is attached below. permissions.mov |
Hello,When will this problem be solved? |
Use package as below
|
Do we have any estimated time when develop will be merged in stable? Thanks 👍 |
I have the same question 👍 |
we need an update asap, as its affecting ios 17 user |
Maybe this PR is useful: |
@kalismeras61 's method worked for me |
Any update of it? |
Not the best way to fix it, because now the application requires full calendar access even if I need to add an event. |
What's the difference between the 2 APIs? Are they for different things, or it's like a tiered system? |
I have two errors using the GitHub Api: any ideas? |
Hello guys, To complete this issue, and after fork master and merge with this pull request : #519 The problem is the getSource function (in SwiftDeviceCalendarPlugin.swift) which may don't retrieve the right account (for exemple, if you have several accounts gmail and neither iCloud account by default nor local account)
So, when I test with `private func getSource() -> EKSource? {
It's run perfectly on real device. |
|
I still encountered this issue yesterday where I got [(401, That account does not allow calendars to be added or removed., null, null)] after granting full access to calendars and then trying to retrieve calendars using:
I'm running iOS 17.2 on the stimulator. Where I differ from the OP is instead of restarting my app, I noticed that if when I navigate to another screen that also uses this package and then navigate back to the screen where I encountered this issue, then my calendars would get retrieved without error. After some trial and error, I realized that before await _deviceCalendarPlugin.retrieveCalendars() I need to first do a permission check by first running:
Before I would only run await _deviceCalendarPlugin.hasPermissions() before trying to retrieve calendars with await _deviceCalendarPlugin.retrieveCalendars(). Hope this helps. |
Describe the bug
In iOS17 , it will print
PlatformException(500, That account does not allow calendars to be added or removed., null, null)
Flutter doctor
[✓] Flutter (Channel stable, 3.10.1, on macOS 13.4.1 22F82 darwin-x64, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.1)
[✓] IntelliJ IDEA Ultimate Edition (version 2022.2.3)
[✓] IntelliJ IDEA Ultimate Edition (version 2022.2.3)
[✓] Connected device (3 available)
[✓] Network resources
• No issues found!
The text was updated successfully, but these errors were encountered: