All posts

Why We Can't Ship a Shared OAuth Client for Google Drive

Design NotesPublished Updated @beimenjun

Watermelon Backup 1.8 added Google Drive. Unlike with OneDrive or Dropbox, adding a Google Drive Node starts with creating an iOS OAuth client in your own Google Cloud project. Why not build one into the app so everyone can just sign in? The answer is in the Drive API quotas.

1 TiB a day per project, not per person

Google announced changes to Drive API quotas in May 2026. One matters in particular for photo backups: a Google Cloud project has a published daily limit of 1 TiB of data downloaded from Drive. That's not the storage space in each account or an upload limit. As of November 2026, Google's quota documentation still lists this limit as not enforced.

With a built-in OAuth client, everyone would still sign in to their own Google account, but their downloads would all count against the same Cloud project. Someone who replaces their phone and restores a few hundred gigabytes of photos and videos could use a large share of that day's quota. Once the limit is enforced, several people restoring on the same day could keep others from downloading their backups. When you need your backup, getting it back shouldn't depend on how much everyone else has downloaded that day.

What happens when a shared project reaches its quota?

The Standard Tier is free, but requests can be throttled when the project hits a quota. To request a higher API rate limit, a public-facing app has to enroll in the Scaled Tier and link a Google Cloud billing account. Under Google's billing rules, from April 1, 2027, only successful Drive REST API requests beyond the billing account's applicable daily free allowance are billable. Google doesn't charge by the byte past 1 TiB, and switching tiers doesn't automatically raise quotas.

If we ran a shared project, the limits and potential costs would depend on everyone's usage. When we built 1.8, the only way to get Watermelon Backup Pro was a one-time purchase. We don't want a restore to depend both on other people's usage and on an ongoing API bill. That's why we haven't provided a shared OAuth client.

You don't need to run a server

Instead, you enable the Google Drive API in your own Google Cloud project and create an iOS OAuth client. Once that's set up, enter the OAuth client ID in Watermelon Backup and sign in to the Google account where you want to keep your backup. Google still applies its quotas, but your usage counts against your project rather than a quota shared by all Watermelon Backup users.

To get started, see Create a Google Cloud Project and OAuth Client, then follow Back Up to Google Drive to add the Node.