Setting up Google Drive Sync (Bring Your Own Credentials)

Last updated: 2026-10-26

Plainva signs in to Google with Sign-in on this device. When your build includes the Standard sign-in for Google, you enter nothing and need none of this page. Otherwise — or if you prefer a project of your own — you use your own Google API credentials: this Bring Your Own Credentials (BYO) approach offers a safe way to sync your private files.

You essentially set up your own little “developer project” at Google that belongs to you alone and that only you can access.

Step-by-step guide

1. Create a project in the Google Cloud Console

  1. Go to the Google Cloud Console.
  2. Sign in with your Google account.
  3. At the top left (next to the Google Cloud logo), open the project dropdown and choose New Project.
  4. Enter a name (e.g. “Plainva Sync”) and click Create.

2. Enable the Google Drive API

  1. Select your newly created project in the dropdown at the top.
  2. Search for Google Drive API in the top search bar and pick the entry under “Marketplace”.
  3. Click Enable.

For Plainva to use your credentials, a consent screen (“OAuth Consent Screen”) must be set up. Since only you use the app, it stays in “testing” mode.

  1. In the left side menu under APIs & Services, open OAuth consent screen.
  2. Under “User Type” choose External (unless you use Google Workspace) and click Create.
  3. App information:
    • App name: e.g. “Plainva”
    • User support email: your own email
    • Developer contact information: your own email
    • Click Save and Continue.
  4. Scopes:
    • Click Add or Remove Scopes.
    • Search for .../auth/drive (Google Drive API, full access) and tick the box.
    • Background: full access is needed so Plainva can also sync files that you drop into your sync folder via the Google Drive web interface.
    • Click Update, then Save and Continue.
  5. Test users:
    • Click Add Users.
    • Enter exactly the Google email address you will later use for sync in Plainva.
    • Click Save and Continue, then return to the dashboard.

Important: you do NOT need to publish the app — it works fully in “Testing” status. Expect Google to expire the sign-in after 7 days in that case, and for good: in this mode the refresh token expires too, so Plainva cannot renew it in the background. Plainva says so in plain words (“sign-in expired”), and Sign in again in the account details restores it in one round trip for every service of that account.

In production removes the fixed expiry of testing mode. It does not guarantee a permanent sign-in: Google can still expire or revoke access. Publishing and verification requirements depend on the use and requested permissions. Google: refresh token expiration.

4. Create credentials (Client ID & Secret)

  1. Open Credentials in the left menu.
  2. Click Create Credentials at the top and choose OAuth client ID.
  3. As the “Application type” choose Desktop app for Plainva on a computer. For the phone (Android and iPhone) create a client of type iOS instead — see the end of this page.
  4. Name: e.g. “Plainva Desktop Client”.
  5. Click Create.
  6. A popup shows your Client ID and Client Secret.

5. Enter them in Plainva

  1. Open Settings → your vault → Cloud accounts.
  2. For a new account choose Connect account… → the Google tile and tick the services; for an account you already have, open it and choose Change at Sign-in on this device.
  3. Choose Own client ID and paste the copied Client ID and Client Secret — on the phone only the Client ID of the iOS client; it has no secret. Then Save.
  4. Click Sign in with Google… (for an account you already have: Sign in again).
  5. A Google browser window opens. Sign in with the account you added under “Test users”.
  6. Google may warn that the app is unverified. Click Advanced and then Continue to Plainva (unsafe).
  7. Confirm the requested permissions — one consent covers every service you ticked.
  8. The own client ID applies to this device only; other devices keep their setting. Enter it on every device that should use your project.

Your vault now syncs safely with Google Drive through your own credentials.

Google OAuth — Desktop / Android / iOS

The desktop instructions above require a Desktop client ID and its matching client secret. On the phone, Android and iOS alike, Plainva signs in to Google in the browser: create an OAuth client of type iOS in your Google project, also for Android, with the bundle ID com.plainva.app. Plainva returns through com.plainva.app:/oauth2redirect; there is no client secret. Enter the client ID on the phone under Sign-in on this device → Own client ID. Do not create a client of type Android: Google accepts the package name and certificate fingerprint of the Play build in one single project worldwide and refuses every other one (“the Android package name and fingerprint are already in use”). An Android client that was set up for Plainva 0.8.3 or 0.8.4 does not work for a new sign-in; accounts that are already signed in keep working. A desktop client cannot replace the mobile registration. For calendars, also enable Google Calendar API and Google Tasks API. If Google shows “Error 400: redirect_uri_mismatch” on the phone, the client ID is of type “Desktop app”: create a client of type iOS as described here and enter its client ID instead. Under the client ID field, Open the Google guide leads to this section.

Google: iOS / Desktop · Google: Android

Add files, calendar or email directly to the account that should carry them. For Google and Microsoft that is one consent for everything the account carries plus the new service.

The Google registration does not match this device’s return path. Check the client type and mobile setup in the Google guide.

A generic sign-in error cannot tell Plainva your Google project’s publishing status or test-user list. Check those settings in Google Cloud and read the specific provider message. A desktop client needs its client ID and matching client secret value; mobile registration depends on the platform and installed build.