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

  1. Go to console.firebase.google.com and click Create a project.
Firebase welcome page with the Create a project button highlighted
  1. Fill out the form to create a new project and click Continue.
Create a project step 1 of 3 form with a project name field and accepted terms checkboxes
  1. Activate or deactivate the use of Google Analytics for the project; click Continue.
Create a project step 2 of 3 screen for enabling Google Analytics with the toggle on and Continue button highlighted

If you have agreed to use Google Analytics, select or create a Google Analytics account; click Create project.

Create a project step 3 of 3 screen for choosing a Google Analytics account with the account dropdown and Create project button highlighted
  1. Your new project is ready; click Continue.
Firebase confirmation screen showing the new project is ready with the Continue button highlighted

Generating Keys

  1. In the left panel, click the settings wheel next to Project Overview and go to the Project settings menu.
Firebase project settings gear menu with Project settings highlighted
  1. Go to the Cloud Messaging tab.
Firebase Project settings page with the Cloud Messaging tab highlighted
  1. Click the Generate key pair button in the Web Push certificates section.
Firebase Cloud Messaging Web Push certificates section with the Generate key pair button highlighted
  1. Copy the public and private keys in the Web Push certificates section of the Cloud Messaging tab.
Web Push certificates section with a generated key pair and the Show private key option highlighted in a context menu

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.


Did this page help you?