Google Calendar sync

I’ve been integrating Google calendar with my apps for some time now. However I’m experiencing an issue where if the user creates and event and then goes and edits the event before the Google calendar ID synced back to the database it doesn’t update the changes back to the Google event because the Google ID was still empty at the time of editing.

I thought about blocking the edit button until an ID is synced back to the database but that seems a bit clunky.

How does native apps like iOS calendar allows adding and editing events right away when an external calendar API ID could not have possibly synced back yet?