I am trying to make an event synchronization function for a project. I need to synchronize events with a remote server.
- Say I installed the application on device A.
- If I log into the system on another device, take B, events synchronized with A should also appear on device B, and events B should also be synchronized
- Now, if I log in to device A again, I should add events B. But events, earlier from A, should not be added to device A again . For this, I decided to store its
eventIdentifier in a remote database. - The problem now arises when I return to device B again, where events previously synchronized with device A already exist, so these events should not be added again. But since
eventIdentifiers corresponds to device A, there is no way to determine if an event has been added to device B or not.
Can someone suggest me a way to achieve such cross-platform event synchronization without duplicating the event?
EKEvent has an eventIdentifier property, but it is only a readOnly property, and I cannot save the event identifier somewhere.
source share