Push Notification (Redirect link)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2017 03:52 AM
I am experimenting with push notifications and I would like to redirect a link when the user acknowledges a push notification.
Here is my scenario:
end user receives a push notification on his mobile phone that a certain Service is experiencing some outage.
he/she swipes the notification
i want a webbrowser opening redirection the user the the Service Portal - System Status page of that specific Service.
This is my existing Push Message Content:
(function buildJSON(/*GlideRecord*/ current, /*String*/ message, /*Object*/ attributes) {
var json = {};
json = {
"aps" : {
"sound" : "default"
},
"web_path" : "sp?id=service_status&service=" + current.getValue("cmdb_ci")
};
return json;
})(current, message, attributes);
So the web_path I have; but how to trigger the webbrowser opening instead of the mobile app?
Gr,
Simon
- Labels:
-
Now Mobile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-17-2017 09:16 AM
Hello,
I am doing the same but want it to open up in the ServiceNow Mobile App, how has web_path been set up? Push Message Attribute Definitions?
Kind Regards
Ashley
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-18-2017 01:58 AM
Not to worry, figured it out
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-20-2020 03:10 AM
Hi Ashley,
can you tell how you did open up in the ServiceNow Mobile App on push notification click.