BooDoo

Sign-in and backends

Connect your Firebase app settings to your app

What is Firebase?

Firebase is a free toolkit from Google for apps. This part is your app’s own Firebase settings — for the website and for the Android app — which let the app itself receive notifications and sign people in.

What it costs
Free for what most apps here use. These settings are not secret, and receiving notifications costs nothing.
Time needed
About 15 minutes the first time. You need a Google account. It is easier on a computer, but a phone works.
If you skip it
Your app still works. Only the parts that use Firebase — usually notifications or sign-in — stay off until you connect it.

What you can build with Firebase

How to get it, step by step

Create a Firebase project (first time only)

  1. Open console.firebase.google.com and sign in with your Google account.
  2. Press the button to create a new Firebase project. If you already made one for this app, open it and skip to the next part.
  3. Type a project name — the name of your app is fine.
  4. It may offer Google Analytics. You can turn it off; you can add it later.
  5. Press Create project and wait until it says it is ready.

Get the web app settings

  1. In your Firebase project, on the overview page, press the Web icon. If you already added an app, press Add app first, then the Web icon.
  2. Type a nickname — the name of your app is fine — and press Register app.
  3. Firebase shows a block of settings that starts with firebaseConfig. You can paste that whole block into BooDoo — we pick out each value for you.
  4. To find it again later: Settings in the left-hand panel, then General, then your app under Your apps, then Config.

Get the web notifications key

  1. In your Firebase project, press Settings in the left-hand panel, then General, then the Cloud Messaging tab.
  2. Scroll to Web configuration, and open the Web Push certificates tab.
  3. Press Generate key pair. If a key is already listed, use that one.

Get the Android app ID and key

  1. In your Firebase project, on the overview page, press the Android icon (or Add app, then Android).
  2. In Android package name, type your app’s package name exactly. Ask BooDoo in the chat “what is my Android package name?” if you do not have it — it must match letter for letter, and cannot be changed later.
  3. Press Register app, then Download google-services.json.
  4. Open that file with any text viewer. The two values below are inside it.
  5. To download it again later: Settings in the left-hand panel, then your Android app under Your apps, then google-services.json.

Which value goes in which box

Web API keyNEXT_PUBLIC_FIREBASE_API_KEYNot secret
The text after apiKey. These web settings are not secret.
Auth domainNEXT_PUBLIC_FIREBASE_AUTH_DOMAINNot secret
The text after authDomain — it ends in .firebaseapp.com.
Project IDNEXT_PUBLIC_FIREBASE_PROJECT_IDNot secret
The text after projectId.
Storage bucketNEXT_PUBLIC_FIREBASE_STORAGE_BUCKETNot secret
The text after storageBucket — it ends in .firebasestorage.app or .appspot.com.
Sender IDNEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_IDNot secret
The number after messagingSenderId. It is the same number Firebase calls your Project number (in Settings, then General), and the one after "project_number" in google-services.json — any of the three is right.
Web app IDNEXT_PUBLIC_FIREBASE_APP_IDNot secret
The text after appId — it looks like 1:123456789:web:abc123.
Measurement IDNEXT_PUBLIC_FIREBASE_MEASUREMENT_IDNot secret
The text after measurementId, starting with G-. It only appears if Google Analytics is on.
Web push keyNEXT_PUBLIC_FIREBASE_VAPID_KEYNot secret
The long key string shown under Web Push certificates. It is safe to share with your app.
Android app IDFIREBASE_ANDROID_APP_IDNot secret
The text after "mobilesdk_app_id" in google-services.json. It looks like 1:1234567890:android:abc123 — not the package name.
Android API keyFIREBASE_ANDROID_API_KEYNot secret
The text after "current_key" in google-services.json. It is not secret.

Watch out for

  • The private key (from the server key file) is the only secret part. Never post it or send it to anyone; if it leaks, delete it in Service accounts and make a new one.
  • The key file cannot be downloaded again. If you lose it, just generate a new one.
  • A work or school Google account may not be allowed to create key files. If Firebase refuses, try a personal Google account.
  • The Android package name must match exactly, or notifications quietly never arrive.