-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: Incremental sync does not work #148
Comments
Dedicated test case:
The code, for self-contained-ness:
The output, when running against NextCloud:
Expected output would be:
|
The fact that the |
Also posted on StackOverflow. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 asyncToken
(and then there's also actag
andetag
). I am trying to use thesyncToken
, 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 thesyncToken
. 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.The text was updated successfully, but these errors were encountered: