How can I access default iOS sound (Tri-tone, Chime, Glass, Horn, Bell, Electronic...) to set it as local notification sound?
I've created local notification, everything works but with default sound (which is Tri-tone). I want to use Chime or another
I only know how to use my own sound files:
localNotif.soundName = @"sound.wav";
Audio services are not private. The methods are documented in the developers reference guide and referenced in the Multimedia Programming guide.
All you need to do if figure out the reference id of the sound you want to play.
check out this site.
If you want to play a Default System Sound. refer a following code, but private Frameworks. you will be rejected.
and check out other this sample code (No private frameworks. supported a Apple).
System sounds are not available you your app, unfortunately. From the docs:
Update
While Apple does say you can't access system sounds, I suppose they must mean that you can't access them for your own purposes, but I see that UILocalNotification.h provides:
"Identifies the default system sound to play when a notification alert is displayed. You assign this value to the soundName property." I am now using this in my app and it seems to work fine.