# 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.appmachine.com/app-details/firebase/renew-firebase-server-key.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
