To enable Mobile and Web Push, you must use a Google Firebase Cloud Messaging (FCM), which as as an intermediary between Dialog Insight and your website or app. Notifications created in Dialog Insight are first sent to FCM, which takes care of delivering them to your website or app. This article explains how to configure the autorization between FCM and DI.
Step 1: Create a FCM Project
Log in to the Firebase console with your Google account to create a project.
In your Firebase project, go to Project settings:
In the Could Messaging section, verify that API (V1) has the Enabled status and note the Sender ID (you will need it if you plan on using Web Push):
In the General section, note the Project ID:
At the bottom of the page, add your web app:
Once your web app is configured, copy the JSON const firebaseConfig:
Step 2: Configure the Authorization
In DI, go to Communications -> Push Notifications, then click Configurations (in the upper right under the 3 dots):
Click Firebase Autorisations:
Click Create an authorization. Indicate a name and the project ID (see step 1), then click Retrieve authorization tokens: A popup will show up to approve authorization.
Step 3: Add Authorization to the Push Notification
When configuring your Web or Mobile notification, you must select the authorization you just created.