I have implemented a Google Calendar synchronisation in my DataSnap server. It pushed appointments into the Google Calendar based in an update stamp in the database. All is working fine when looking at the calendar with Google Chrome on a PC.
The problem my customer reports is that the Android apps he is using - aCalendar+ & Google Calendar - sometimes need up to 2 hours to show the new or updated appointments, that are visible instantly on Google Chrome. Even calling a resync manually on the Android phone is not helping.
The customer has many - and I mean MANY - events in his calendar. I checked the Google Calendar API here:
Obviously I don't know what optional parameters the Android apps are using. The parameters updatedMin or maxResults look interesting. I don't know if I need to do something special when adding or updating an event in order to set for example the "last modification time".
My DataSnap server has not been updated in a while, which is why I am using v18.104.22.168 of TMS VCL Cloud Pack. Changes to TAdvGCalendar since v3.4 indicate a "Event StartTime and EndTime TimeZone offset" in v3.8 and "TimeZone Bias was incorrect for specific timezones" in v22.214.171.124.
I am not doing anything special regarding the timezone in my Delphi code. All I do regaring times is:
GCalendarItem.StartTime := qryNewAppointmentDATETIME.AsDateTime;for a default of 120 minutes events.
GCalendarItem.EndTime := IncMinute(qryNewAppointmentDATETIME.AsDateTime, 120);
Has anyone experienced a similar problem with Google Calendar events
creating via TAdvGCalendar, which need a long time to show up on Android