Create a Firebase project

1. Go to the Firebase Console page: https://console.firebase.google.com/
Note: you need to be logged in to your Google account to access this page. If you don’t have a Google Account, you need to create one to continue this process.
2. Click "Add project":

picture

An iBox called Create a project opens.
3. Name your project
4. Click "Continue" then enable or not Google Analytics
5. Click "Create project"


1

Firebase project settings

1. In the Firebase menu, at the top left of the page, click the gear icon > "Project settings”:

picture

2. Go to the tab "General"
3. Under "Your apps" click the web icon

picture

4. Enter the name of the app and click "Register app"

picture

5. Copy the second code snippet

picture

7. Paste the code in your back office in the menu Publish > PWA > Push Certificate
8. Click "Next step"


2

Service accounts

1. Go to the menu "Service accounts" of your Firebase project settings
2. Click "Generate new private key"

picture

3. Upload the .JSON file generated to your GoodBarber back office in the menu Publish > PWA > Push Certificate at step 2.3 of the process
4. Click "Next step"


3

Rebuild your PWA

1. Go to the menu Publish > PWA > Update > Progressive Web App Engine
2. Click "Rebuild my PWA" to integrate your server key to your app.

Once PWA regenerated, you'll be able to send push for your PWA users.


More articles