I recently set up Google Push notifications for Google Calendar. I used push notifications to notify about events created / updated / deleted in the viewed calendar and it works fine and I use two-way synchronization.
However, in this setting, I found a minor glitch. I have a local application in which I create an event. It syncs with Google Calendar (via an API call), and Google notifies the event again in my local application. This leads to duplication of events.
How can I distinguish between push notifications received from the following 2 cases?
CASE 1: Events created by the user on Google Calendar or created by other applications - this should be synchronized with the application calendar
CASE 2: Events added to Google Calendar by my local application - this should be identified as a duplicate
Previously, Google did not notify of changes in events if the Google Project (created in the api console) that adds the event matches the one that receives push notifications. Now this is not happening.
Any help on this is appreciated. Thanks in advance!
source
share