Enable the Route Configuration for APNs Push Notifications
Enable the Notification Framework messaging route for handling Apple Push Notification Service (APNs) push notifications.
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 APNs:
- Modify the default
configuration:
apns: disable: "false"
- Save the file.
- Modify the default
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: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.
- Save and close the file.
- Restart the Notification Server.