Reputation: 33
Should I implement CalDav client to synch with external CalDav server ? Or CalDav server can do it somehow ?
Like in apple calendar, I have to input server url, username, password If I want to add this functionality to my service, how it should be implemented ?
Researched all over the internet, but found no answers
######### UPD 1
Web/CalDav related topic useful links:
https://documentation.open-xchange.com/7.10.2/middleware/calendar/iTip.html - small tips for some of the operations
General doc: https://datatracker.ietf.org/doc/html/rfc5545, https://datatracker.ietf.org/doc/html/rfc5546, https://datatracker.ietf.org/doc/html/rfc6047, https://www.ietf.org/rfc/rfc4791.txt?number=4791, https://www.rfc-editor.org/rfc/rfc3744#section-5.4
Filtering events for re-sync: Caldav filter by date-range and property
We can set our custom property, and use it for re-sync porpuses
Getting User's List of Calendars from CalDAV, https://gist.github.com/wernerjoss/841c1fe73942b2a99da3e3f465c8711d - a process of retrieving calendars of the user
WebDAV doc: https://datatracker.ietf.org/doc/html/rfc4918
Useful info: Developing Carddav/Caldav Server. Events disappear clientside on iOS after syncing
More useful info about available properties: https://sabre.io/dav/clients/ical/
######### UPD 2
With all links above, I was able to implement a proper CalDav client, that also pulls info from the CalDav server every 5 mins. As a result, you need to properly implement the subscription by yourself. And all of the calendar functions and event extend them !
If you have any questions, please leave a comment
Upvotes: 2
Views: 213