Enable the Route Configuration for FCM Push Notifications
Enable the Notification Framework messaging route for handling Firebase Cloud Messaging (FCM) push notifications.
About this task
Perform this task on the Notification Server.
Procedure
-
Log in to the server as a user with sudo permissions and change to
user
mtx
. For example:ssh server_ip_address sudo su - mtx
- Open /opt/mtx/conf/mtx_notifier_camel.yaml.
-
To enable the Apache Camel route and endpoint for FCM:
- Enable the
configuration:
fcm: disable: "false"
- Save the file.
- Enable the
configuration:
-
Locate the
Push Notifications
section in mtx_notifier_camel.yaml, and set the values of the following properties to suit your business. The default YAML config is as follows:fcm: disable: "true" pushAddress: fcm.googleapis.com:443/fcm/send serverKey: my-server-key
where:
- The pushAddress is fcm.googleapis.com:443/fcm/send (this push address is unlikely to change).
- The serverKey is the key obtained from the Google Firebase Cloud Messaging Service.
- Save and close the file.
- Restart the Notification Server.