Reputation: 7504
I have implemented Push Notification and have been using Default sounds every time. I know that there are many other sounds as well that I can use but I don't know the names of all sounds that Apple support for Push Notification. Can someone please help me to get the list?
Thanks.
Upvotes: 0
Views: 3352
Reputation: 631
You can use any sound you desire (and you have the rights to) - but you need to correctly encode the sound to work on the device (caf, aiff, wav). You must embed the sound as a resource within your project bundle, you cannot use "Any sound" on the device. Once embedded, you can reference it by filename in your payload for the sound.
Caveat - your sound must be under 30 seconds long and there is no mechanism to loop the sound)
Upvotes: 1
Reputation: 31722
You could put your own sound file , which you like to play.
From apple documentation.
You can package the audio data in an aiff, wav, or caf file. Then, in Xcode, add the sound file to your project as a nonlocalized resource of the application bundle.
See more
The sound has to be bundled with your app.
Upvotes: 2