Push notification system
-
- UpdatedAug 1, 2024
- 2 minutes to read
- Xanadu
- Notifications
The push notification system involves several key elements that manage the delivery of push messages and push notification responses.
- Customer instance
- Your ServiceNow instance.
- Push proxy
- An instance that collects all push notifications that go to the ServiceNow Classic mobile application and forwards them to the ServiceNow applications for Apple iOS or Android. If you create a custom push application, you do not use the push proxy.
- Push provider
- The provider of push messages, which is the Apple Push Notification service (APNs) or Firebase Cloud Messaging (FCM) service, for the ServiceNow Classic mobile app or custom mobile apps.
- Push application on a mobile device
- The application, such as the ServiceNow Classic mobile application. You can also build and customize your own push application.
Push notification process
- Activity on the instance triggers a push notification.
- The instance looks for who to send the notification to and checks the user notification preferences to find their push device settings.
- The instance sends the push notification to the push notification service, either the Apple Push Notification service (APNs) or Firebase Cloud Messaging (FCM) service. If you are using the ServiceNow Classic mobile app, the instance sends the notification through a push proxy instance, which then forwards the notification to the APNs or FCM service.
- The push notification service sends the notification to the user's push application. When the instance sends the notification to the push notification service, it includes message content along with the instance name and ID. This information ensures that a response to the notification is sent back to the correct instance. If the user can reply to the notification, such as sending an approval to a change request, the response is sent via REST message back to the instance.
- The instance identifies a script to run to handle the response.
- The script performs an action on the instance, such as marking a change request approved. If there is invalid JSON or if the script fails, an error response is sent back to the device.
Push notification responses
With custom push applications, you can have your users act on records in the instance by responding to a push notification.
The actions that they can take are defined in a script that you associate with the notification message. The response is sent to the instance in this format:
Related Content
- Activate push notifications
Several plugins must be activated to use push notifications. If you have the Mobile UI (com.glide.ui.m) plugin active, push notification plugins are automatically activated.
- Installed with push notifications
Several types of components are installed with the push notifications plugins.
- Push notification properties
Push notifications provides several properties to customize the setup.
- Push notification setup with the ServiceNow mobile app
The ServiceNow mobile application automatically enables push notifications and configures mobile devices for push notifications when users initially log in to the instance.
- Push notification setup with a custom push application for ServiceNow mobile apps
If you are using your own custom mobile or push application, you must configure your app for use and set up the push contents.
- Requeue failed push notification messages
Push notification delivery might fail for various reasons. You can view which messages failed and requeue them to be sent out if necessary.
- Push notification retention
You can archive and eventually destroy push notifications that you no longer need or if your Push Notification table is excessively large.