> 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/renew-firebase-server-key.md).

# Renew Firebase Server Key

Pre-requisite(s):

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

This article explains how to:

* Revoke the Firebase Server Key of your app from the Firebase console.
* Create a new Firebase Server Key for your app in the Firebase console.
* Replace the currently used Firebase Server Key of your app in the AppMachine designer.

Good to know:

* Firebase is a Google service, and is therefor linked to your Google account.
* On the Pushmessages page in AppMachine you'll be able to find the Firebase Project ID, which is the project in which your Firebase Server Key resides.
* Push notification functionality will be restored as soon as the new Server Key is saved in AppMachine. A content or store update is not required.

### **Revoking the Firebase Server Key of your app from the Firebase console.**

1. **Navigate** to <https://console.firebase.google.com/> and **login** with your Google account.
2. **Open** the **Firebase project** of your app.
3. **Click** on the **Settings icon** in the top of the left-side menu and open the **Project Settings** page.<br>

   <figure><img src="/files/SsNAgLX9TIvCqevXlYnj" alt="Firebase project settings"><figcaption><p>Firebase project settings</p></figcaption></figure>
4. **Open** the **Cloud Messaging** tab.
5. Locate and **hover over the Server Key**.
6. Click the trashcan icon to **revoke the Server Key**.

   <figure><img src="/files/uXNQ2luTOa53qH6Zd5F2" alt="Revoke Firebase server key"><figcaption><p>Revoke Firebase server key</p></figcaption></figure>
7. **Confirm** the removal **by clicking** on the **Delete** button.

   <figure><img src="/files/9ixX7G8y8JY4hiEs0ihb" alt="Confirm removal"><figcaption><p>Confirm removal</p></figcaption></figure>

### **Creating a new Firebase Server Key for your app in the Firebase console.**

The following steps assume that you're already logged into the Firebase console, and that you've navigated to the Cloud Messaging tab of the Project Settings page. If this is not the case, please follow steps 1-4 listed above.

1. On the Cloud Messaging page, **click** the **'Add server key'** button.
2. **A new Server Key will be generated and displayed** on the page instantly.
3. **Copy the Server Key** so that you can use this for the next steps within AppMachine.<br>

   <figure><img src="/files/rPoQVpI0ktDzMmjAN4Y0" alt="Copy server key"><figcaption><p>Copy server key</p></figcaption></figure>

### **Replacing the currently used Firebase Server Key of your AppMachine app(s).**

\
If your Firebase project contains multiple apps, then repeat the steps below for each app in the Firebase project.

1. **Navigate** to <https://design.appmachine.com/> and **login** with your AppMachine account.
2. Open your app, then **navigate** to the **Pushmessages page** and **open** the **Settings** tab.
3. **Paste** the **Server Key** generated in the previous steps **into** the **Firebase Server Key field**.
4. **Save** your changes.<br>

**You've now successfully updated the Firebase Server Key of your AppMachine app(s) =-**

<br>
