Setting up push notifications on a ServiceNow instance means activating the push plugins, writing a push message, and creating a push notification that delivers it. Afterward, an administrator tunes delivery with system properties, checks the Push Notifications log for failed sends, and decides how long push records should be kept. The steps below follow that order.
What a push notification does for your users
A push notification is a short text message on a mobile device that alerts the user to a change or asks for an action. A push notification can also ask for a reply. A user who taps a response button can approve a Change request straight from the notification.
Set up a push notification the way you would an email notification. Settle three decisions first:
| Decision | Question to settle | Where it lives |
|---|---|---|
| Recipient | Who receives the message | Recipient rules and user notification preferences |
| Timing | What event starts the notification | The notification’s trigger conditions |
| Content | What the message says and whether it offers a reply | A push message record with the text and JSON payload |
ServiceNow mobile app users run either the ServiceNow mobile app, which enables push at first login, or a custom push application. Confirm which app your users run, because the steps differ by app.
Activating the push plugins
Three plugins must be active: Push Notification, which supplies the components and REST APIs; Notification System Push Addon, which adds push to the existing notification system; and Push Feedback, which handles Apple feedback about devices that can no longer receive messages. If the Mobile UI plugin (com.glide.ui.m) is already active, these switch on automatically.
Activation requires the admin role. Go to All > System Applications > All Available Applications > All, select Request Plugin, and complete the request on Now Support. Two details shape the timing. The activation date must be at least two business days after the request. Plugins switch on in two batches each business day, morning and evening, US Pacific time, so write any specific time in the Reason/Comments field.
Setting up push for the ServiceNow mobile app
For the ServiceNow mobile app, push is enabled and the device configured at a user’s first login. The admin adds the notification to the Push Default Registration table, so it appears in user preferences at the next login. This path is not supported on on-premise instances.
How a push notification travels
The push notification system has four parts. The customer instance is your ServiceNow instance. The push provider is Apple Push Notification service (APNs) or Firebase Cloud Messaging (FCM). The push application is the app on the device. For ServiceNow Classic, a push proxy forwards notifications to the iOS or Android app. A custom push application skips the proxy.
A notification moves through four stages. An activity on the instance triggers it. The instance finds the recipients and checks their preferences to locate their push devices. The instance sends the message to APNs or FCM, through the proxy where applicable. The provider delivers it to the app.
The payload carries the message content with the instance name and ID, so a reply reaches the correct instance. Replies return by REST message, and the instance runs the script linked to the reply, such as one that marks a change request approved. A malformed response or a failed script sends an error back to the device.
Components that the plugins install
The plugins install tables, business rules and roles. The tables you will meet first are these:
| Table | What it holds |
|---|---|
| Push Applications [sys_push_application] | Push apps registered to the instance |
| Push Default Registrations [sys_push_notif_default_reg] | Notifications users are automatically subscribed to for a push app |
| Push Notifications [sys_push_notification] | Notifications the instance attempted to send |
| Push Notification Installations [sys_push_notif_app_install] | Devices where users agreed to receive push, keyed by token |
The push_admin role lets its holder create and modify push notifications, so assign it to the people who maintain push content.
Sending push to logged-out users
Messages to inactive users need the Send Push Notifications to logged-out users plugin (com.glide.push.logged_out.users). It is a maintenance plugin, so request it through the Now Support Service Catalog with a maintenance date. Then open each notification under All > System Notification > Push > Push Notifications, tick Push to inactive users, and select Update. If the checkbox is missing, configure the form layout.
The system property com.glide.push.logged_out.users.threshold_time.days sets how many days after logout messages keep arriving. Create it through sys_properties.list with the type String. Its default is 10. Keep these messages free of sensitive information and of requests for action.
Tuning push properties
Push properties live in the System Properties table. These change how push behaves:
| Property | Type | Default | Effect |
|---|---|---|---|
| glide.push.enabled | true or false | true | Turns push notifications on or off |
| glide.push.apns.version | integer | 2 | Selects APNs version 1 or 2 |
| glide.push.debug | true or false | false | Writes system log entries for push errors |
| glide.push.feedback.debug | true or false | false | Logs APNs feedback for custom iOS apps |
| glide.push.notification.ttl_seconds | integer | 21600 | Seconds a queued notification can wait before it expires |
The time-to-live default of 21600 seconds is six hours. A queued notification that waits longer than that is not sent, so check the Push Notifications log when a message never arrives.
Creating a push message
Create the push message before the notification that uses it. The admin role is required. Go to All > System Notification > Push > Push Messages, select New, and complete the form:
| Field | What to enter |
|---|---|
| Name | A descriptive name for your reference |
| Push App | The mobile application that receives the message |
| Push Message Content | The JSON payload, such as Yes/No, Approve/Reject or Accept/Decline button pairs |
| Message | The text shown to the user. It overrides the notification’s message and accepts variables |
The message and the notification must refer to the same table. Because the message text overrides the notification text, check which one users see during testing.
Finding and requeuing failed messages
The instance cannot guarantee or confirm delivery, and a message can fail because the queue is large or because of another instance issue. Go to All > System Logs > Push Notifications to investigate. The Type column shows failure (not sent), pending (queued) or success (sent, though not necessarily received by the device).
To retry, select the failed rows and choose Re-queue failed push notifications from the choice list. If the same notifications keep failing, raise glide.push.notification.ttl_seconds so they stay eligible longer.
Payload size is another common cause. Apple iOS limits a payload to 2,048 bytes and Google to 4,096 bytes. The instance does not send a message above the limit, and failed messages are saved in the system logs.
Keeping push records within a retention policy
The retention feature, available from the Jakarta release, archives push records and then destroys them on a schedule. It needs the Data Archiving plugin, which must be active, and the Push Retention plugin (com.glide.push_retention), which holds the rules.
Archiving moves records from the Push Notification table to the Push Notification Archive table after the archive rule’s time limit. Destroying deletes archived records after the destroy rule’s limit. The two default rules are Push Notification – Over a year old, which archives records created more than 365 days earlier, and Push Notification Archive – Over a year old, which destroys records archived more than 365 days earlier. With those defaults, a message stays two years in total. New instances have these rules active by default; upgraded instances need them switched on manually, after review.
Check for an existing cleanup process first. Table cleaners may already do the job, in which case Push Retention is unnecessary. Avoid running two management processes at once, because overlapping deletion rules can remove records you meant to keep.
Custom push applications
A push message content record holds the JSON content that goes into the push notification payload sent to the push provider. Create it under All > System Notification > Push > Push Message Content, select the push app it belongs to, and write a script in the Push Message Generation field that determines the message content from the current record.
A custom push application follows its own path. The developer needs the push_admin role, and iOS apps need a push certificate uploaded to the instance. Users are opted in through the Push Installation API, a POST request that takes the push application name in its path. The body carries a platform matching a Push Platform entry and a device token, sent as application/json. The endpoint returns 200 on success, and 400, 401 or 500 when a request fails.
Frequently asked questions
Do push notifications need a mobile app?
Yes, a device needs an app that can receive them. The ServiceNow Classic app supports push by default, and a custom push application can be built instead.
Can push notifications reach logged-out users?
Yes, after the logged-out plugin is installed and Push to inactive users is ticked on each notification. The threshold property sets how many days messages keep arriving, and its default is 10.
What happens to push records over time?
On a new instance with default settings, records are archived after 365 days and destroyed a year later, so they stay two years in total. Upgraded instances need the retention rules switched on manually.
Why does a notification show success but nothing arrives?
Success means the instance handed the message to the provider, which does not confirm the device received it. Check the Push Notifications log, consider a higher time-to-live value, and confirm the payload stays under the size limit.