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

  1. 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
  2. Open /opt/mtx/conf/mtx_notifier_camel.yaml.
  3. To enable the Apache Camel route and endpoint for FCM:
    • Enable the configuration:
      fcm:
        disable: "false"
    • Save the file.
  4. 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.
  5. Save and close the file.
  6. Restart the Notification Server.