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.
- Navigate to https://console.firebase.google.com/ and login with your Google account.
- Open the Firebase project of your app.
- Click on the Settings icon in the top of the left-side menu and open the Project Settings page.
- Open the Cloud Messaging tab.
- Locate and hover over the Server Key.
- Click the trashcan icon to revoke the Server Key.
- Confirm the removal by clicking on the Delete button.
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.
- On the Cloud Messaging page, click the 'Add server key' button.
- A new Server Key will be generated and displayed on the page instantly.
- Copy the Server Key so that you can use this for the next steps within AppMachine.
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.
- Navigate to https://design.appmachine.com/ and login with your AppMachine account.
- Open your app, then navigate to the Pushmessages page and open the Settings tab.
- Paste the Server Key generated in the previous steps into the Firebase Server Key field.
- Save your changes.
-= You've now successfully updated the Firebase Server Key of your AppMachine app(s) =-
As mentioned at the start of this article, push notification functionality will be restored as soon as the new Server Key is saved on the Pushmessages page in AppMachine. A content or store update is not required.