Hi There,
I have been trying for hours to get a custom notification sound to work in an ios app. I have sound files in both wav and mp3 formats in my main app bundle and they are showing in "Copy bundle resources" in xcode. As I change the json payload for the notification, sometimes they are vibrating sometimes they are not, but they never give a sound whether I use 'default' or the name of my file.
Here is the payload I am currently trying to send:
{
'notification': {'title': 'Sending push form python script',
'body': 'New Message',
},
'to':
deviceToken,
'priority': 'high',
'apns': {
'headers':{
"apns-collapse-id": "solo_changed_administrator",
"content-available": "1",
"apns-priority": "10",
},
'payload':{
'aps':{
'sound': 'pager.wav',
'badge': 12213123223
}
}
},
# 'data': dataPayLoad,
}
Is there something wrong with this payload? Notification appears on phone but sound does not play.