builttoroam / device_calendar

A cross platform plugin for modifying calendars on the user's device
https://pub.dev/packages/device_calendar
BSD 3-Clause "New" or "Revised" License
260 stars 263 forks source link

[iOS] cannot add or remove calendars to Google calendar #420

Open arsalalgorepublic opened 2 years ago

arsalalgorepublic commented 2 years ago

I'm not able to create calendar on iPhone 12 pro max using ios version 15.4.1

Error code: 599 Error Message: Device calendar plugin ran into an issue. Platform specific exception [500], with message :"That account does not allow calendars to be added or removed.", has been thrown.

Did anyone face this issue?

thomassth commented 2 years ago

Does said account allow calendars to be created or deleted?

We may need more information on the account info side

arsalalgorepublic commented 2 years ago

Actually, the problem is that the user has set his default calender as a google calendar on an IOS device. It works when we set the default calender as an iCloud calender.

thomassth commented 2 years ago

It sounds like a problem on Google calendar's setup, if icloud works fine

arsalalgorepublic commented 2 years ago

Yes, It seems like Google Calendar doesn't allow us to read and write on iOS even though I checked on android it's working fine with google calendar as well.

stephenjen commented 2 years ago

For iOS, the resolution seems to be to always create new calendars in iCloud? Where to create new calendars should be separate to where the default calendar resides.

arsalalgorepublic commented 2 years ago

For iOS, the resolution seems to be to always create new calendars in iCloud? Where to create new calendars should be separate to where the default calendar resides.

Exactly I'm creating a new calendar but we have no such option to create a calendar in iCloud . In Ios, it chooses to create a calendar on the default selected calender in my case it is google calender so I ran into an error.

thomassth commented 2 years ago

Looking at how other framework did things, it seems that no one can add calendar to specific calendar accounts? Maybe this is another ecosystem lock in https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin/blob/81ac2df9d99d23d68b25120654bb792bd8f49e42/src/ios/Calendar.m#L935

arsalalgorepublic commented 1 year ago

Actually, when I switched the default calendar to iCloud it works but when the default calendar is google it throws the same above exception.On May 12, 2022 8:58 AM, Thomas @.***> wrote: Does said account allow calendars to be created or deleted? We may need more information on the account info side

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

ebsangam commented 1 year ago

On iOS Calendar app make sure Gmail Calendar is connected properly and re-authenticate if not.