Section 1 Official Documentation

Firebase Setup & Service Account Configuration

Send and manage push notifications using Firebase FCM v1 for Flutter and other platforms.

Firebase Setup & Service Account Configuration (FCM v1)

In this guide, you will learn how to create a project in Firebase Console, download your Service Account JSON key file, and upload it in your HosteDay App dashboard to enable Push Notifications via FCM v1.


Prerequisites

  • An active Google Account to access Firebase Console.
  • An active App on HosteDay via dash.hosteday.com (Push Notifications are built-in and available for every App at no additional cost).

Step 1: Create a Project in Firebase Console

  1. Open Firebase Console and sign in with your Google account.
  2. Select an existing project or click Add project, enter a project name (such as my-hosteday-app), and complete the setup.
  3. Ensure Firebase Cloud Messaging API (V1) is enabled in your project settings (it is enabled by default for new projects).

Step 2: Download the Service Account JSON Key

  1. In Firebase Console's left sidebar, click the gear icon next to Project Overview and select Project settings.
  2. Switch to the Service accounts tab.
  3. Under Firebase Admin SDK, click Generate new private key.
  4. Confirm the security prompt and click Generate key to download the .json file to your machine.

Security Warning: This file contains your private encryption key (private_key) for sending notifications. Never share it publicly, commit it to public Git repositories, or bundle it inside client-side app code.


Step 3: Upload the Key & Enable Notifications in HosteDay

  1. Open your App dashboard at dash.hosteday.com.
  2. From API Workspace, open Push Notifications.
  3. Under Firebase Cloud Messaging (FCM v1) settings, upload the Service Account JSON file you downloaded from Firebase.
  4. Save the settings—the dashboard will confirm that your Firebase project is connected.

Note: You can also use the automated HosteDay Flutter CLI flow in the dashboard to provision a Firebase project and platform config files automatically via your Google account.


Next Step

Once your Service Account key is connected, integrate your Flutter app or other client platforms: