-
Notifications
You must be signed in to change notification settings - Fork 71
Description
This may be a missing feature, an outdated protocol implementation, a bug, or simply a misunderstanding on my side. I am going to assume the latter, and please forgive me posting this as issue here. However, I could not find anything in the docs, so this is at least a request to improve the docs.
I want to fetch the CalDAV calendar and address book from the server, store the values locally on disk to cache them, and save the syncToken. Then, later, either in an interval or at the latest during the next start of the app, run the sync again. During that second sync, I want to get only those (and exactly those) calendar entries and contacts that were changed (which includes added, removed, or modified).
I cannot figure out how to do that, from the calendar and address book sync API. The documentation does not describe that. There is a syncCalendar() function, which from the name should do what I need, but the params and the overall process are not described. In the code, there is a syncToken (and then there's also a ctag and etag). I am trying to use the syncToken, which should do what I need, but it doesn't.
After the sync, I get calendar.syncToken and store it, and before the next sync (which might be after a restart), I restore the syncToken. But I get a full sync every time. It seems that I am using the API wrong, but I don't know what is right. I will attach a dedicated test case and the output below.