Enable Cloud Messaging

This article explains how to enable the Cloud Messaging service within a Firebase project.

Pre-requisite(s):

Enabling Cloud Messaging for your Firebase project

  1. Make sure you have selected your Project in the Firebase Console, and via the cogwheel in the top-left corner of the Firebase console, open Project Settings:

  2. Open the Cloud Messaging settings page by clicking on the similarly named tab. Then click on the three dots in the upper right corner. Select Manage API in Google Cloud Console.

  3. We want to manage our Firebase Cloud Messaging API account, so select Manage:

  4. You'll be redirected to the Google Cloud Console in a new tab. Here we are going to create a new service account: 1) Select Credentials 2) Select Create Credentials 3) Select Service Account

  5. Give the account a name (you are free to choose) and select Create and Continue:

  6. Continue with assigning the role Firebase Cloud Messaging API Admin to this new account:

  7. Select Continue and then Done:

  8. We are now ready to start creating the keys that we need to upload in AppMachine. Back in the main overview, select the account you just created by clicking on it:

  9. Here, select Key and then Add Key:

  10. Select Create new Key, then select JSON and finally click Create:

  11. You will now see a confirmation that the key has been created and downloaded to your computer:

  12. We are done here, and return to the AppMachine Designer: 1) Go the the Publish page of your app 2) Select Edit Store Info 3) Select View Certificates and API Keys

  13. Select Add Certificate:

  14. Click on Next:

  15. NOTE: Make sure you start with the google-services.json, this is the file you downloaded when you first created your app project. If you don't have it, you can re-download it through the Project Settings of your app:

  16. After uploading google-services.json, you can proceed to upload the newly created key. When you are ready, select "Upload".

  17. Congratulations, you are now finished!

Last updated