Add custom sound file name to payload data for notification


#1

Trying to play custom sound for notification, but only default sound i.e vibration is played when notification received
For example:
{
“tokens”:[“device token”],
“profile”:“unigarden”,
“notification”:
{“message”:“Hello3 World !”,
“ios”:
{“badge”:1,
“sound”:“default”}
}
}
I have my sound file named as “testsound.wav” and it is stored on Resources folder of my phonegap (iOS) project and I need to play this sound when receiving push notification.

For example:
{
“tokens”:[“device token”],
“profile”:“unigarden”,
“notification”:
{“message”:“Hello3 World !”,
“ios”:
{“badge”:1,
“sound”:“testsound.wav”}
}
}
But getting no sound of notification.I have used push plugin to get device token and handle notifications.
Kindly help me out from this problem .