> For the complete documentation index, see [llms.txt](https://docs.appmachine.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.appmachine.com/app-details/firebase/enable-cloud-messaging.md).

# Enable Cloud Messaging

Pre-requisite(s):

* Firebase project. [Read more..](/app-details/firebase/create-firebase-project.md)

### Enabling Cloud Messaging for your Firebase project

1. Make sure you have selected your **Project** in the Firebase Consol&#x65;**,** and via the cogwheel in the top-left corner of the Firebase console, open **Project Settings**:\
   \
   ![](/files/nsNWPIHbBPk1yK0oLqrA)\
   ![](/files/nDGWehTci3i9q5qqbLtG)
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**.\
   \
   ![](/files/OagFFybrmhKtQnP5SLhL)\
   ![](/files/A6oe2So843MDguZboyPT)
3. We want to manage our Firebase Cloud Messaging API account, so select **Manage**:\
   ![](/files/UiZlyPsKky52sAPZb2xM)
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**\
   ![](/files/Y5OwyhYaKPxISwwOkGr7)
5. Give the account a name (you are free to choose) and select **Create and** **Continue**:\
   ![](/files/JeOV7Vl659ppBaVkSobc)&#x20;
6. Continue with assigning the role **Firebase Cloud Messaging API Admin** to this new account:\
   ![](/files/8FXODGL1Rc8Z5DA8Mkvn)<br>
7. Select **Continue** and then **Done**:<br>
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:\
   ![](/files/SRPcIE9QtZTcnWDCVhpt)
9. Here, select **Key** and then **Add Key**:\
   ![](/files/fQL79oTjxuHTzbNmuB3G)
10. Select **Create new Key**, then select **JSON** and finally click **Create**:\
    ![](/files/7A81SM5pIJUyVE1pEbGF)\
    ![](/files/7qUXFUA5TvRj5T1t3tvx)
11. You will now see a confirmation that the key has been created and downloaded to your computer:\
    ![](/files/yNQagQsYNFl9aCRVDpEz)
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**\
    \
    ![](/files/ixjy63RTOkfAmAVBgQGk)
13. Select **Add Certificate**:\
    ![](/files/cFVhti5qsWzDpsqsHcQU)
14. Click on **Next**:\
    ![](/files/D9UtVYnvovJTi5EQzwbz)
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:\
    ![](/files/wdZfBhqxABEqQcqILwpp)<br>
16. After uploading google-services.json, you can proceed to upload the newly created key. When you are ready, select "Upload".\
    ![](/files/7OlOZEhrsBtc8xO1wLFZ)\
    ![](/files/j7kDszsk80Lb61RRyGx8)
17. Congratulations, you are now finished! &#x20;
