Reading Apple docs, I'm still confused as to what the difference is between the EKCalenderItem calendarItemExternalIdentifier and the EKEvent eventIdentifier , and which one should we use to identify calendar events on different devices. In particular:
EKCalendarItem calendarItemExternalIdentifier The external calendar identifier provided by the calendar server. (Only for reading)
and
EKEvent eventIdentifier: A unique identifier for the event. (Only for reading)
The EKCalendarItem calendarItemExternalIdentifier was added in iOS6, and I would think that it would be an identifier that I need to save in order to call later in the EKEventStore eventWithIdenfier: as it states:
This identifier allows you to access the same event or reminder across multiple devices.
But in my own testing, it seems that when I create and save a new EKEvent, the eventIdenifier that I get from the EKEvent object is unique and useful, and the resulting CalendarItemExternalIdentifier does not seem to work with the EKEventStore eventWithIdenfier:
If anyone has a definitive answer, I would love to know.
ios objective-c ekeventstore eventkit ekevent
Zs
source share