Hello, guys
I'm using local notifications in my application and I provide action for the UILocalNotification so that the user can open the application when the notification fires. I'm pretty sure that before iOS 4.2, when the user taps the action button, the alert sound was stopped immediately. But when I run my application on iOS 4.2 simulator, the sound plays until it reaches its end, which is very bad for me, because the sound file is pretty long - around 30 seconds. I don't want to shorten the alert sound, because it's an alarm application. But if the user clicks the "Close" button of the local notification alert view, the sound is stopped at the very same moment. Do you know if there is any workaround to stop the alarm sound when the user clicks the action button? Huge thanks in advance, I'm really looking forward for your advices. Happy coding
Hello, guys
I'm using local notifications in my application and I provide action for the UILocalNotification so that the user can open the application when the notification fires. I'm pretty sure that before iOS 4.2, when the user taps the action button, the alert sound was stopped immediately. But when I run my application on iOS 4.2 simulator, the sound plays until it reaches its end, which is very bad for me, because the sound file is pretty long - around 30 seconds. I don't want to shorten the alert sound, because it's an alarm application. But if the user clicks the "Close" button of the local notification alert view, the sound is stopped at the very same moment. Do you know if there is any workaround to stop the alarm sound when the user clicks the action button? Huge thanks in advance, I'm really looking forward for your advices. Happy coding
It is fine on the device. Prob just weird bug in simulator.
__________________
Haters gonna Hate
Likers gonna Like
It is fine on the device. Prob just weird bug in simulator.
Thank you, Bertrand I'm testing on the simulator, because I don't have an access to a iOS 4.2 device, I'll take your word for it You saved my day Thanks a lot!
I filed a bug report, However, this issue seems to be fixed in iOS 4.2 Public release.
Not quite fixed. On an iPhone 4 (running iOs 4.2 official release), UILocalNotification sound-only alerts (no alertBody specified) keep running even after cancelLocalNotification is called. Anyone know of a way to stop the sound in mid-playback?