Open DSz4 opened 4 years ago
Addition: I saw some issues here with storing events in non-primary calendars. However, I did not find a rule for identifying the calendar, where everything works. The Huawei Y6 has zero primary calendars, the Huawei P20 lite has the gmail account as primary calendar, while Samsung Galaxy S8 had both the gmail account and the phone calendar as primary calendars marked.
I encountered some issues on different android devices and using different calendars when creating recurring events in an ionic app.
Steps:
Error:
I let the user pick out a target calendar where the events will be saved. If the user picks the calendar associated with the gmail account, it works as expected.
If the user picks the "phone calendar/device calendar/my calendar" (which is provided by many devices per default), the recurring entry that I don't even edit is cut off after a seemingly random number of days in the native calendar after I delete the other event. When I examine the event in the native calendar, it still says it runs forever (or until an end date if set), but it won't be displayed after a random day (usually around 1-3 weeks after the start is the last occurrence). The same happens when using deleteEventById. Non-recurring events work fine in both calendar types and iOS works fine too.
Here's the overview of devices and calendar types, where I tested if deleting recurring events work (yes if it works, no if the error above occurs). As described above, the gmail account is the calendar associated with a gmail address and phone calendar is a calendar provided by the device by default.
I am using version 5.1.5 of the plugin and 4.14.0 of @ionic-native/calendar. The output running ionic info is: