Enable the Route Configuration for APNs Push Notifications

Enable the Notification Framework messaging route for handling Apple Push Notification Service (APNs) push notifications.

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 APNs:
    • Modify the default configuration:
      apns:
        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:
    apns:
      disable: "true"
      server: apns-hostname
      certificate: APNS_Certificate_keys.p12
      certPassword: cert-password
      topic: com.my.app 
    

    where:

    • The certificate and certPassword are required for the certificate file that is issued by the Apple Push Notification Service.
    • The server and topic are the details obtained from the Apple Push Notification Service.
  5. Save and close the file.
  6. Restart the Notification Server.