Want to stop redirecting push notification from Now Mobile to Mobile Agent Agent applet.

mihirlimje867
Tera Guru

We have successfully received the push notification on the Now mobile app but when we click on the notification for form view it redirects to the Mobile agent app applet. Could anyone please, resolve this issue to redirect to the Now Mobile app applet instead of the Mobile agent app applet? the blue one is: now mobile app and yellow is a: mobile agnet app

 

This is a now MobileThis is a now MobileNow Mobile app                                                  Mobile Agent appThis is a Mobile agentThis is a Mobile agent

4 REPLIES 4

Vijayalakshmi P
Kilo Sage

Is it OOB Notification, can you share the Notification name?

It is a custom notification that is created for case approvals on the [sysapproval_approver] table.

Vijayalakshmi P
Kilo Sage

You may check your record in this table  - sys_push_notif_msg_content 

Is it pointing to Agent app? 

var deepLinkGenerator = new global.MobileDeepLinkGenerator("Agent");

(function buildJSON( /*GlideRecord*/ current, /*String*/ message, /*Object*/ attributes) {


var layoutFieldGenerator = new global.NotificationLayoutFieldGenerator();
var identifier = layoutFieldGenerator.layoutField(current.sys_class_name, current.sys_id, "number");
var description = layoutFieldGenerator.layoutField(current.sys_class_name, current.sys_id, "short_description");
var status = layoutFieldGenerator.layoutField(current.sys_class_name, current.sys_id, "state");
var json = {};
var deepLinkGenerator = new global.MobileDeepLinkGenerator("request");
// sys_sg_form_screen from this table copy the record screen sys_id and paste it.
var link = deepLinkGenerator.getFormScreenLink('63925cdddb487910943c4a281396194f', current.getTableName(), current.getValue("sys_id"));
json = {
"aps": {
"sound": "default"
},
"Link": link,
"Layout": {
"Status": status,
"Identifier": identifier,
"Description": description
}
};

return json;

})(current, message, attributes);

 

 

Now its show as a "Error loading url" when we click on that notification.