I am writing a reminder app for the iPhone that shows the reminder using local notifications.
If a reminder application is running, while closing, local notifications are not displayed. Instead, the didReiveiveLocalNotification method is called in my app representative, and I copy the local notification dialog by displaying UIAlertView with the recommended text.
When local notifications are displayed outside the app, the device vibrates and the sound specified by the sound is played. UIAlertView .
I can vibrate the device by calling AudioServicesPlaySystemSound (kSystemSoundID_Vibrate) , again, I want to duplicate it in the app. But I can not understand how to play local notification default sound. There is no equivalent SystemSoundID static, and I'm not sure what the path will be.
tl; Dr I want to play local notification default sound while displaying a UIAlertView. Any ideas? Ideally, the system will be a way of choosing sound by using the audio system. However, the following statement from Apple's "System Sound Services Reference" otherwise suggests:
In Mac OS X, when a user configures system preference to flash the screen for alert, Or the sound can not be sung, calling this function will make the screen shine. In Mac OS X, pass the KSTSIDIDUSUSER-verified allot to run the alert sound chosen by the user in the system's preferences. There is no favorite user warning sound in iOS.
Since it seems that the SDK offer is very low, you have a good library of your own WAV file on the following link, perhaps in the sound you are searching for Will be:
Good luck!
Comments
Post a Comment