TabMail: unread badge setup guide & FAQ

Unread badges are optional. TabMail's tabs, colors, groups and themes all work without this. Badges need a one-time setup because Google doesn't let an extension ship a shared sign-in key: you create a free key (an "OAuth Client ID") in your own Google account. It takes about 5–10 minutes. Google occasionally renames menu items; the names below match Google's current "Google Auth Platform" layout.

TabMail only asks for read-only Gmail access and only asks Gmail for numbers (conversation counts). It never reads your email content.

Do not skip Step 4 (Publish the app). A new Google project starts in Testing mode, and Google cancels the sign-in of apps in Testing mode every 7 days. That is the number-one reason badges "keep disconnecting". Publishing takes one click and is free.

Before you start

Open TabMail's settings → Unread Badges. Keep that page open. You will copy a "redirect URL" from it and paste a Client ID back into it.

TabMail has a fixed extension ID, so its redirect URL is the same on every computer and never changes:

https://gccbaemahdbndlkbcclaompnfnaanjld.chromiumapp.org/

That means you register it with Google once, and every computer you install TabMail on (with the same build) uses it as is.

Step 1: Create a project and turn on the Gmail API

  1. Go to https://console.cloud.google.com and sign in with the Google account you use for Gmail.
  2. Click the project picker at the top → New project. Name it anything (for example "TabMail") → Create.
  3. Make sure the new project is selected. Open APIs & Services → Library, search for Gmail API, open it and click Enable.

Step 2: Set up the consent screen

  1. Open Google Auth Platform (search for it in the top bar if you don't see it) and click Get started.
  2. Enter an app name (for example "TabMail"), pick your email as the support email, and click Next.
  3. Audience: choose External. Click Next. (Google Workspace users: see the note in Step 4.)
  4. Enter your email as the contact, agree to the user data policy, and click Create.
  5. Open Data Access → Add or remove scopes, find https://www.googleapis.com/auth/gmail.readonly, tick it, then Update and Save. (If you can't find it in the list, paste it into the manual-scope box.)

Step 3: Create the Client ID

  1. In Google Auth Platform, open Clients → Create client.
  2. Application type: Web application (not "Chrome extension"). Name it anything.
  3. Under Authorized redirect URIs, click Add URI and paste the redirect URL: https://gccbaemahdbndlkbcclaompnfnaanjld.chromiumapp.org/ (TabMail's Unread Badges page shows the same URL, with a Copy button). It must match exactly, including the final slash.
  4. Click Create. Copy the Client ID (it ends in .apps.googleusercontent.com). You do not need the client secret.

Step 4: Publish the app (this stops the weekly disconnect)

  1. In Google Auth Platform, open Audience.
  2. Under Publishing status it says Testing. Click Publish app and confirm the prompt.
  3. The status must now read In production.
What to expect: Google will still call the app "unverified". That is normal and harmless for an app only you use. You do not need to submit anything for Google verification, and once the app is In production you do not need to add test users. (Google limits unverified apps to 100 users in total, which is irrelevant for personal use.)

Google Workspace (company or school) account? In Step 2 you can choose Internal instead of External. Internal apps have no unverified warning and no expiry, so Step 4 is not needed. Your Workspace administrator may need to allow the app if they restrict third-party access.

Step 5: Connect

  1. Paste the Client ID into TabMail's Unread Badges page and click Save, then Connect.
  2. Google shows a "Google hasn't verified this app" screen. That is expected because it's your own app. Choose your account → Advanced → Go to TabMail (unsafe) → allow read-only Gmail access.
  3. Turn on Show badge for the tabs you want.

Connected before you published? Click Disconnect and then Connect once more. A sign-in made while the app was in Testing still expires after 7 days; a fresh one made after publishing does not.

Using TabMail on more than one computer

How the numbers are counted

FAQ

Why can't TabMail just sign me in? Google's rules for reading Gmail require a verified app and an expensive annual security review. Using your own Client ID keeps your access entirely between you and Google, and TabMail never sees a developer-owned secret or your email.

Is it safe? The permission is read-only. The key lives in your Google account and your browser. Nothing goes to the TabMail developer. You can revoke access at https://myaccount.google.com/permissions or via "Disconnect" / "Sign out" in TabMail.

Does it cost anything? No. Reading counts uses a tiny amount of the free Gmail API quota.

Badges disappeared / TabMail says "Session expired".

  1. Check Google Auth Platform → Audience says In production (Step 4). If it says Testing, publish it.
  2. In TabMail, click Reconnect (or Disconnect, then Connect). Do this once after publishing.
  3. TabMail renews its access quietly every hour using your Google sign-in in this Chrome profile. Stay signed in to Google in Chrome, and don't set Chrome to clear cookies when it closes, or the quiet renewal can't work and you'll see "Session expired" until you reconnect.
  4. A red "!" on the TabMail toolbar icon means a reconnect is needed.

The number differs from Gmail. See "How the numbers are counted". Check you are comparing conversations, not individual emails. Numbers may be up to a minute behind; switching back to the tab refreshes them. Search tabs over 1,500 results show "999+".

My settings don't appear on my other computer. (1) Both computers must run the same TabMail build: open TabMail settings → Backup & Reset and compare the Extension ID (the standard one is gccbaemahdbndlkbcclaompnfnaanjld); a warning appears if it differs. (2) Both Chromes must be signed in to the same Google account with Extensions turned on under Sync. (3) Wait a few minutes. (4) Moving from an older copy with a different ID? Settings never synced between those, so use Export on the old one and Import on the new one once.

Badges show on one account but not another. Badges only appear on the Google account you connected. To use another account, Disconnect and Connect again choosing that account.

I get "redirect_uri_mismatch". The redirect URI in Google must exactly match the one TabMail shows in Unread Badges (including the trailing slash). With the standard build it is always https://gccbaemahdbndlkbcclaompnfnaanjld.chromiumapp.org/. If TabMail shows a different one, you are running a copy with a different ID (an older copy, or one installed from another source). Either reinstall the standard build, or add the URL that TabMail shows as an additional redirect URI in Google.

I get "access_denied" or "app not verified / 403". Your project is probably still in Testing: publish it (Step 4). If you prefer to stay in Testing, add your own Gmail address under Audience → Test users, but you'll have to reconnect every 7 days.

Google says the app is blocked by an administrator. Your Workspace administrator restricts third-party apps. Ask them to allow the Client ID, or use a personal Google account.

Badges show 0 or nothing. Check the label spelling matches Gmail (capitalization doesn't matter), or that your search returns results in Gmail's own search box. Tabs with "Show badge" turned off have no badge, and a count of zero hides the badge.

How do I remove everything? TabMail settings → Unread Badges → Disconnect; then revoke access at https://myaccount.google.com/permissions and delete the Google Cloud project at https://console.cloud.google.com → IAM & Admin → Settings → Shut down.