Mobile notification Sound not changing

Lior Kaitel
Tera Guru

hello,  
i am trying to change the sound of the push notifications for the mobile app ( and agent).
i have changed the property "connect.notification.audio_alert" to the sound i added to the instance (which is working when i click play) and i still hear the normal sound of the phone- i have tried to change from "sound" : "(audio file name)" but it didnt work... what should i do ?
here is my code:

(function buildJSON(/*GlideRecord*/ current, /*String*/ message, /*Object*/ attributes) {
var json = {};
var layoutFieldGenerator = new global.NotificationLayoutFieldGenerator();
var identifier = layoutFieldGenerator.layoutField(current.getTableName(), current.getUniqueValue(), "number");
var description = layoutFieldGenerator.layoutField(current.getTableName(), current.getUniqueValue(), "short_description");
var deepLinkGenerator = new global.MobileDeepLinkGenerator("request");
var link = deepLinkGenerator.getFormScreenLink('ebb94d9c0f2033001befa68ca8767e4e', current.getTableName(), current.getUniqueValue());
json = {
"aps" : {
"sound" : "default"
},
"Link": link,
"Layout": {
"Identifier": identifier,
"Description": description
}
};
return json;
})(current, message, attributes);
0 REPLIES 0