Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

Sounds for push notification

bala37
Kilo Contributor

Hi all,

          We had an issue with notification sound in mobile. i.e In the push message content we had given specific value for sound still we are not getting the given sound.

@Paulsylo  Any one have any idea on this please do reply.

 

Here you can see the code

var soundVal = "default";
if(current.priority == "1" || current.priority == "2")
soundVal = "NotificationAlert-3.caf";

json = {
"aps" : {
"sound" : soundVal

}

};

1 ACCEPTED SOLUTION

Paulsylo
Tera Sage

Hi - I hope you have seen this for push notification, check this can help you.

https://docs.servicenow.com/bundle/orlando-mobile/page/administer/tablet-mobile-ui/task/sg-mobile-set-up-push-notifications.html#

Try as below,

find_real_file.png

 

find_real_file.png

YOu can try this way by appending your code and check if the audio is working!

https://docs.servicenow.com/bundle/orlando-servicenow-platform/page/use/collaboration/task/t_CustomizeConnectAudioNotifSound.html

 

 

Regards,
PaulSylo

To be is to do. To do is to be.

View solution in original post

1 REPLY 1

Paulsylo
Tera Sage

Hi - I hope you have seen this for push notification, check this can help you.

https://docs.servicenow.com/bundle/orlando-mobile/page/administer/tablet-mobile-ui/task/sg-mobile-set-up-push-notifications.html#

Try as below,

find_real_file.png

 

find_real_file.png

YOu can try this way by appending your code and check if the audio is working!

https://docs.servicenow.com/bundle/orlando-servicenow-platform/page/use/collaboration/task/t_CustomizeConnectAudioNotifSound.html

 

 

Regards,
PaulSylo

To be is to do. To do is to be.