Deleting a Google calendar event deletes it from the iPhone's calendar, but not from the MacBook's one

80 Views Asked by At

I receive events in this way:

let store = EKEventStore()
let predicate = store.predicateForEvents(withStart: startDate, end: endDate, calendars: nil)
let events = store.events(matching: predicate)

And remove one of them in this way:

try store.remove(event, span: .thisEvent, commit: true)

It removes event from iPhone's calendar, but does not from MacBook's. The event came from Google calendar. If I do these things with an event came from iCloud calendar, it works both on iPhone and MacBook. I have tried different ways to solve this problem but without success. I would appreciate any help.

0

There are 0 best solutions below