Alex Rivera | Logout

How can I access default iOS sound to set it as notification sound?

Asked 2012-08-02T11:46:28.120
10

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";
Edit
Report

1 Answer

12

check out this site.

If you want to play a Default System Sound. refer a following code, but private Frameworks. you will be rejected.

AudioServicesPlaySystemSound(1004);

and check out other this sample code (No private frameworks. supported a Apple).

answered 2012-08-02T11:57:44.103

Your Answer