Chrome and Firefox configuration
Get the Firebase project credentials
1. Create a Firebase project.
2. Open your Firebase Console and choose the project you created.
3. Go to Your Project > Project settings.
4. In the Cloud Messaging tab, find Server Key (1) and Sender ID (2):
5. In the Cloud Messaging tab, scroll the page down to the Web configuration section and press Generate key pair.
Copy the generated key pair to the clipboard.
6. In the Service accounts tab, press Generate new private key:
In the window opened, press Generate key. The JSON file will be downloaded.
7. Enable API Permission on Google Cloud Platform:
- Visit https://console.cloud.google.com/apis/library/fcm.googleapis.com
- Select your project.
- Press Enable.
Configure Chrome and Firefox
8. To configure Chrome or Firefox platform, open the Pushwoosh project with the app you want to send pushes to and click Configure for Chrome or Firefox.
9. In the Web Configuration opened, upload the private key generated in your Firebase project settings.
10. Paste the Web Push certificate key pair and press Apply.
11. Add the Web Push private key in the Web Push private key field and click Apply. This key is required to ensure that Web Push notifications continue to work.
You can obtain the key from Firebase by navigating to Project Settings > Cloud Messaging > Web Configuration > Show private key.