How to Create a Firebase Project and Generate an FCM Private Key File
To allow BoldDesk’s Mobile SDK to work with Firebase Cloud Messaging (FCM), you need to set up Firebase and download a private key file. This key acts like a secure link between BoldDesk and Firebase, enabling your mobile app to receive messages such as notifications and other data updates.
In this guide, you’ll learn how to:
- Create a Firebase project.
- Enable the messaging service.
- Generate and download the private key file needed for integration.
Step 1: Create a Firebase Project
- Sign in to Firebase Console.
- Create a new project.
Learn more on How to Add a Firebase project.
Step 2: Enable Firebase Cloud Messaging API
- In the Firebase console, go to Project Settings → Cloud Messaging tab.
- Ensure Firebase Cloud Messaging API (V1) is enabled.
Step 3: Generate an FCM Private Key File
-
Navigate to Project Settings → Service Accounts tab.
-
Click Generate new private key.
-
In the confirmation dialog, click Generate key.
-
Download and securely store the JSON file containing the key.
- Keep the JSON file secure; it contains sensitive credentials.
- Do not share the key publicly.
Frequently Asked Questions (FAQ)
1. What is Firebase in this context?
Firebase is a Google service that provides tools for app development. BoldDesk uses Firebase Cloud Messaging to send notifications and data messages to your mobile app.
2. Why do I need an FCM private key file?
The key allows BoldDesk to authenticate with Firebase and enable messaging features in your mobile app.
3. Can I use an existing Firebase project?
Yes. You can use an existing project as long as Firebase Cloud Messaging API (V1) is enabled.
4. What happens if I lose the JSON key file?
You must generate a new private key from the Service Accounts tab in Firebase console.
5. Can I generate multiple keys?
Yes, but it’s recommended to keep only the keys you actively use and delete unused ones for security.
6. Does BoldDesk support other messaging providers?
Currently, BoldDesk supports Firebase for mobile SDK messaging.
7. What should I do if the API is disabled?
Enable Firebase Cloud Messaging API (V1) under Project Settings → Cloud Messaging in the Firebase console.