Not able to redirect to request record (incident) on mobile push notification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
Hi,
I’m implementing mobile push notifications for incidents assigned to users in ServiceNow (Yokohama version). The notification is successfully received on the mobile device. However, when tapping the incident number within the push notification, it does not navigate to the specific incident record as expected.
Troubleshooting Steps Taken
Reviewed the JSON structure in the official product documentation and referenced a YouTube tutorial. Both indicated that the push message content JSON should include the relevant applet and record reference.
In my instance, when configuring the push message, I noticed that no applets are appearing in the navigator to select or reference within the message content, despite building/configuring push notifications and the necessary Mobile UI Builder setups.
Below is the javascript code:(function buildJSON(current, message, attributes) {var layoutGen = new global.NotificationLayoutFieldGenerator();var text_01 = layoutGen.layoutField(current.getTableName(), current.sys_id, "priority");var text_02 = layoutGen.layoutField(current.getTableName(), current.sys_id, "state");var text_03 = layoutGen.layoutField(current.getTableName(), current.sys_id, "short_description");var msg_title = "System updates!";var deepLinkGenerator = new global.MobileDeepLinkGenerator("Request");var link = deepLinkGenerator.getFormScreenLink("5120f7c7770101108f64b2487b5a9904", current.getTableName(), current.getValue("sys_id"));var json = {"android_title": msg_title,"aps": {"alert": {"title": msg_title}},"Link": link,"Layout": {"Status": text_01,"Identifier": text_02,"Description": text_03}};return json;})(current, message, attributes);
Anyone knows this ?