Generating Firebase Keys
Register your project in Google Firebase and get keys to send web push messages via Firebase Cloud Messaging (FCM).
Creating a Project
- Go to console.firebase.google.com and click Create a project.
![Project settings](https://files.readme.io/99f01d6-fcm_1.webp)
- Fill out the form to create a new project and click Continue.
![Fill out the form](https://files.readme.io/1843221-fcm_2.webp)
- Activate or deactivate the use of Google Analytics for the project; click Continue.
![GA](https://files.readme.io/b42da9b-fcm_3.webp)
If you have agreed to use Google Analytics, select or create a Google Analytics account; click Create project.
![Create project](https://files.readme.io/96a628f-fcm_4.webp)
- Your new project is ready; click Continue.
![Your new project is ready](https://files.readme.io/1ff670e-fcm_5.webp)
Generating Keys
- In the left panel, click the settings wheel next to Project Overview and go to the Project settings menu.
![Project settings](https://files.readme.io/c4c8b15-fcm_6.webp)
- Go to the Cloud Messaging tab.
![Cloud Messaging](https://files.readme.io/2dd6f74-fcm_7.webp)
- Click the Generate key pair button in the Web Push certificates section.
![Generate key pair](https://files.readme.io/8fac2ff-fcm_8.webp)
- Copy the public and private keys in the Web Push certificates section of the Cloud Messaging tab.
![Web Push certificates](https://files.readme.io/0dc6d3d-fcm_9.webp)
Proceed to installing Web Push script on your site.
Note
To send push notifications in Safari, you need to make additional settings. Read more in the article.
Updated 6 months ago