Now Mobile (Android) has a bug with Push Notification url redirection (UTAH).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2023 07:22 AM
Hi,
i have a problem with push notifications on the Now Mobile Application on Android, and only on android, which is the following:
When the notification is fired it arrives successfully i can "click" on it and it drives me to the record as expected (document id, systemid already set up, it has worked around 2 weeks ago or more), but when the application is closed, or the notification menu is refreshed then no matter what clicking on the notification gets me "Error loading URL" error messages, so the redirection only works for the first time click or without refresh. Every new notification works fine until it is refreshed, even though the rest of the "links" arent working which were refreshed the unrefreshed is fine till the refresh.
What is this bug, or error? Can i do something with it?
Thank you for advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2023 03:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2023 04:46 AM
Hi,
no.
My problem is with NowMobile application, not with the Agent.
And the resoultion provided for that error, doesnt specify what should be those lines containing, and mentioning empty lines, i suppose that isnt going to help me unfortunetally.
The error message is this: " Error loading URL" and in the IOS NowMobile app, its working fine. Several Android phones are producing the same error. I tried downgrading the application but that also produced the error(15.8).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2023 06:12 AM
can you show the configurations of the push notification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2023 06:21 AM
(function buildJSON(/*GlideRecord*/ current, /*String*/ message, /*Object*/ attributes) {
var layoutFieldGenerator = new global.NotificationLayoutFieldGenerator();
var identifier = layoutFieldGenerator.layoutField(current.getTableName(), current.sys_id, "number");
var description = layoutFieldGenerator.layoutField(current.getTableName(), current.sys_id, "short_description");
var status = layoutFieldGenerator.layoutField(current.getTableName(), current.sys_id, "state");
var json = {};
json = {
"aps" : {
"sound" : "default"
},
"Redirection" : {
"Title" : gs.getMessage("Incident Details"),
"To" : "Embedded",
"Destination": {
"DocumentId": "91cd4cb187d3a110d111646e8bbb35c0",
"ItemId": current.sys_id
},
"Context" : {
"ContextType": "RECORD",
"TableName": "incident",
"RecordId": current.sys_id
}
},
"Layout" : {
"Status": status,
"Identifier" : identifier,
"Description" : description
}
};
return json;
})(current, message, attributes);