What is the purpose of the Google-service file and Private Certificate/Key? These files are used to enable FCM (Firebase cloud messaging). FCM is a cross-platform messaging solution that lets you reliably deliver messages at no cost. It inherits the reliable and scalable GCM infrastructure, plus Push notification enhancements for Android OS 8+ users!

We’ll break these down into two sections, one for each file. First we’ll show you how to create your Google Service File.


Once you have uploaded both files to your Control Panel, your Android app must be updated to include them. Make sure to let us know that you’ve uploaded these files and we’d be happy to resubmit your app to Google Play.

How do I create my Google Service File?

Step 1. Go to https://firebase.google.com/ and click Get Started.

Step 2. Log into the same account you used to register your Google Developer account.

Step 3. Select Add Project.

Step 4. Under Project Name, input the name of your Android app, agree to Google’s terms, then click Create Project.

**Please note that if you have already added the project to your Firebase Console there is no need to re-add it. Simply move on to the next steps below.**

Step 5. From the left-side menu select Project Overview >> Project Settings.

Step 6. One you've gone to the Project Settings screen, click on the Android Icon to generate Android Firebase certificates.

Step 7. The next screen will display a number of fields to fill out.

Head back to your Control Panel, go to Advanced > Certificates and Keys.

Here, copy the App Bundle ID.

Step 8. Return to Firebase console and paste your App Bundle ID under the Android Package Name field and click Register App.

Note: The App nickname is an optional field. Here, you can input a name to help you identify your project. Additionally, the Debug Signing Certificate SHA-1 is also an optional step. If you are familiar with setting this up, you are welcome to do so. However, it is advised to keep this blank until absolutely necessary. This is because you are unable to have the same combination of Package names and SHA-1 Hashes in more than one place. This can cause issues with multiple projects in which you will have to track down the original project and delete the original signature.

Step 9. Download your google-services.json file and click Next.

Step 10. Under Add Firebase SDK click Next.

Step 11. On your Control Panel, head to the Advanced Tab on the left and click Certificates and Key. Click "Select File" and insert the Newly Download Google Json file and press upload.

NOTE: Back on the Firebase console under "Run your app to verify installation", click Skip this step to continue.

How do I create my Private Certificate/Key?

Step 1. On the Firebase console under Project Settings, go to the Service Accounts tab.

Step 2. Under Firebase Admin SDK click Generate New Private Key.

Step 3. From the prompt, select Generate Key

Step 4. Upload your Private Certificate/Key to your app’s Control Panel. Click Upload to finish.

Have questions? No problem! Reach out to us and we’ll be ready to help :)

Did this answer your question?