Enable Cloud Messaging
This article explains how to enable the Cloud Messaging service within a Firebase project.
Last updated
This article explains how to enable the Cloud Messaging service within a Firebase project.
Last updated
Pre-requisite(s):
Firebase project. Read more..
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:
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.
We want to manage our Firebase Cloud Messaging API account, so select Manage:
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
Give the account a name (you are free to choose) and select Create and Continue:
Continue with assigning the role Firebase Cloud Messaging API Admin to this new account:
Select Continue and then Done:
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:
Here, select Key and then Add Key:
Select Create new Key, then select JSON and finally click Create:
You will now see a confirmation that the key has been created and downloaded to your computer:
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
Select Add Certificate:
Click on Next:
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:
After uploading google-services.json, you can proceed to upload the newly created key. When you are ready, select "Upload".
Congratulations, you are now finished!