Default notification sound playing: how to handle custom notification sounds in objc?

I'm covering my bases here.


I have registered my app for remote notifications in my AppDelegate and have included the "sound" property in the aps object. an example aps is given here:


aps = {

alert = scrubbed out

"content-available" = 1;

latitude = scrubbed out

longitude = scrubbed out

scrubbed out = 1;

sound = "BLE_alarmNoti.caf";

title = scrubbed out

};

}


If i have a look at the main bundle, the file "BLE_alarmNoti.caf" is included.


How do you add custom sounds to a remote notification? The guide tbh is very ambiguous on this as the section for custom sounds only gives you instructions by making a local notification.


the program has to be able to play this custom sound as it is an emergency reminder - if someone is lost, or they have an accident the notification comes from them to another device.


Once i've established that the code works, then I'll go onto the next part, which is that it might be a device issue.

Default notification sound playing: how to handle custom notification sounds in objc?
 
 
Q