We are building an event management app, and we are investigating whether it is possible to let our users to create event directly from Google Calendar. Currently our workflow is:
- User creates an event in Google Calendar
- User adds our email address as guest of the event
- We receive event notification mail from Google Calendar, and register the event in our system.
Now we want to allow users to edit event details (specifically, description and location) on our app dashboard, and here comes the problem: how can we update the event in user's calendar?
I tried to use iMiP mails but failed, I tried to increase sequence number, and change ORGANIZER
field to our own mail address, even if I marked the event as modifiable by guest in Google Calendar, the event couldn't be updated by our mail. (Update: Attached latest version of my test code, am I missing anything in my mail?) We also tried to send updated event as regular ICS file in attachment (directly via GMail) and failed too.
On the other hand, if we change UID
in the event ICS file, send it as regular attachment, and import it to Google Calendar, then this (new) event can be updated by subsequent ICS file with the same UID
. However we don't want to implement in this way since it creates a new event in user's calendar.
So my question is, other than using Google's Calendar API (which is our last resort if there is no other good way to implement this), is there any way to update user's event from our app?