Google Firebase
Google Firebase is used for notifications in mobile apps and websites.
WARNING:
The most important fields to be filled out are:
- FCM - Project ID (Firebase V1)
- FCM - private key JSON (Firebase V1)
Soon, the rest of the fields in the Firebase configuration in Synerise will be deprecated.
Integrate Firebase with Synerise
- Go to Firebase Console website.
- If you don’t have a Firebase project:
- Click Create project.
- Follow the instructions on the interface.
- When your account is created, proceed to step 3.
- Go to Settings > Cloud Messaging.
- Copy the Server key and save it in a text editor.
- Copy the Sender ID and save it in the text editor.
- In the Cloud Messaging section, find the Web Push certificates tab.
- In the Web Push certificates tab, click Generate key pair.
- Save the keys in the text editor.
Where to get Server key, Sender ID in Firebase, and Web Push certificatesServer key and Sender ID in Firebase Console settings section - Go to the General section, copy the Project ID and save it in the text editor.
- Go to the Service accounts section, copy the JSON key and save it the text editor.
- Proceed to Enabling Firebase in Synerise.
Enabling Firebase in Synerise
- Go to
Settings > Apps & Services.
- In the list of integrations, click Firebase.
Result: The Firebase settings expand. - If you are using legacy Firebase API (older than HTTP v1), fill in the following fields:
- FCM - Server Key
If you haven’t copied it earlier in the process, you can find it in your Firebase account settings, on the Cloud Messaging tab. - FCM - Sender ID
If you haven’t copied it earlier in the process, you can find it in your Firebase account settings, on the Cloud Messaging tab.
- FCM - Server Key
- If you are using Firebase HTTP v1 API, fill in the following fields:
- FCM - Project ID (Firebase V1)
If you haven’t copied it earlier in the process, you can find it in your Firebase account settings, on the General tab. - FCM - private key JSON (Firebase V1)
If you haven’t copied it earlier in the process, you can find it in your Firebase account settings, on the Service account tab.
- FCM - Project ID (Firebase V1)
- If you want to enable encryption, perform the following actions:
- Switch on the Push encryption toggle.
Result: Push notifications are encrypted.WARNING:- You must implement decryption in your mobile applications. Client apps without decryption implemented receive no push messages at all. See the following articles:
- You must provide the VAPID keys (see 5.b). If you do not provide the keys, web push messages are not sent at all.
- Fill in the following fields:
- Public VAPID key
If you haven’t copied it earlier in the process, you can find it in your Firebase account settings, on the Cloud Messaging > Web Push Certificates tab. - Private VAPID key
If you haven’t copied it earlier in the process, you can find it in your Firebase account settings, on the Cloud Messaging > Web Push Certificates tab.
- Public VAPID key
- Switch on the Push encryption toggle.
- Click Save.
- At the top of the section, switch on the toggle.
