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
- Open Firebase Console and sign in with your Google account.
- Select an existing project or click Add project, enter a project name (such as
my-hosteday-app), and complete the setup. - 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
- In Firebase Console's left sidebar, click the gear icon next to Project Overview and select Project settings.
- Switch to the Service accounts tab.
- Under Firebase Admin SDK, click Generate new private key.
- Confirm the security prompt and click Generate key to download the
.jsonfile 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
- Open your App dashboard at dash.hosteday.com.
- From API Workspace, open Push Notifications.
- Under Firebase Cloud Messaging (FCM v1) settings, upload the Service Account JSON file you downloaded from Firebase.
- 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:
- For Flutter apps: Connecting Flutter App via HosteDay CLI
- For other platforms: Integrating with Other Firebase-Supported Platforms