My app download a planning and create new events in calendar (between 30 to 70). For each day, I first delete all the events of the day, then I create all new events. This is running fast : less than 5 seconds.
On my android phone, in the Google Agenda app, all the old events are correctly deleted, and all the new events are correctly added.
On the web Google Agenda (opened in Chrome), all the new events are correctly sync and added (after few seconds), but all the deleted events on phone are still there, and I have all events (if there is no change in planning) duplicated... If I try 10 times, events are duplicated 10 times (not on the phone).
How to be sure that synchronization has been successful ?
Is it a bug from Google ?
Is there a limitation for sync deletion ? (in my case more than 30 events deleted in less than 5 seconds)
Is it too much or too fast ? (I tried to add a thread.sleep(2000) between each day deletion but still the same...
Someone has a solution ?