Susitha
Susitha

Reputation: 3349

Assign alert tone for UILocalNotification from available sounds in iphone

I am working on an app that used UILocalNotification. I wanted to select sound from default sounds that came with iPhone. How can i list down sounds for assign as the alert tone.

Upvotes: 3

Views: 2130

Answers (1)

Pavel Oganesyan
Pavel Oganesyan

Reputation: 6924

There is one standard sound for notification from system (UILocalNotificationDefaultSoundName). You can play any custom sound shorter than 30 seconds. So, if you can download any native sound from ios from anywhere, you will be able to use it as custom sound. Documentation

Upvotes: 4

Related Questions