I have a UILocalNotification
, and I don't want to set it to use a default tone. I have used AudioToolbox.framework, and I have a SystemSoundID
by referring to this library: https://github.com/TUNER88/iOSSystemSoundsLibrary.
But UILocalNotification
needs a sound name. How can I get the name from the SystemSoundID
?
Description of soundName in UILocalNotification Class Reference mentions
So if you want the default local notification sound use
UILocalNotificationDefaultSoundName
.Also, a note from Multimedia Programming Guide
So you cannot use any system sound id you find in iOSSystemSoundsLibrary for this.
If you want a custom sound, you'll have to provide your own.