EddyVerbruggen / Calendar-PhoneGap-Plugin

:date: Cordova plugin to Create, Change, Delete and Find Events in the native Calendar
774 stars 403 forks source link

Unable to modify the entire recurring event #528

Closed lele6 closed 4 years ago

lele6 commented 4 years ago

Is there a way to modify recurring events? For example, change the subject for all future events.

With window.plugins.calendar.modifyEventWithOptions(title,eventLocation,notes,startDate,endDate,newTitle,eventLocation,notes,startDate,endDate,filterOptions,newOptions,success,error);, I have tried the below two ways:

  1. set filterOptions.id as the event id and set the newTitle Result: the first instance of the recurring event is changed to a non-recurring event with the new title; the original recurring events remain the same title and lose the first instance.

  2. set filterOptions.id as the event id, set the newTitle and set recurrence parameters (newOptions.recurrence, newOptions.recurrenceEndDate, newOptions.recurrenceInterval) of newOptions the same as those of filterOptions Result: the function window.plugins.calendar.modifyEventWithOptions success callback returns the updated event id with "/RID=..." appending after the original event id, but the first instance of the recurring event disappears in the native calendar.

Really appreciate it if anyone has any suggestion! Thank you!

lele6 commented 4 years ago

Changed the span to EKSpanFutureEvents works.