Michael Ortiz
Michael Ortiz

Reputation: 777

Local Push Notification Enable Sound

Does anybody knows how to enable Sound on a Local push notification? By that, I mean that I am creating the notification from the device. I am not using APNS or anything related. Right now, the notification comes in but there is no sound. Is it possible to enable the notifications sound?

Thank you!

Upvotes: 0

Views: 820

Answers (1)

Léo Natan
Léo Natan

Reputation: 57040

The UILocalNotification class has a soundName property. You should assign it to a sound name of a file that you have included in the app's bundle, or you can use UILocalNotificationDefaultSoundName for the default iOS sound.

More information on the sound files supported here.

Upvotes: 1

Related Questions