Push notifications
Push Notifications are an important feature to retain and re-engage users and monetize on their attention. We use Firebase's cloud messaging feature as a push notification service. Let's get started with following steps.
First things first, The Firebase is part of the Google product so we will need a Google project.
#
Configuration- Create the Google Cloud Project click here
- Enable Firebase Cloud Messaging API click here
- Create the Firebase project click here
- Go to project settings.
- We are going to use Firebase Admin SDK to send a push notification. Thus we have to authenticate, in order to use Firebase feature, here comes the Firebase service account. Create the JSON key and download it.
- Now we have the Firebase service account, copy all values of the file you downloaded and replace all values to erxes-api/google_cred.json file