Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 12-04-2010, 10:01 AM   #1 (permalink)
Registered Member
 
Join Date: Sep 2009
Location: Sofia, Bulgaria
Posts: 29
cpprulez is on a distinguished road
Default iOS 4.2 and UILocalNotification problem

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
cpprulez is offline   Reply With Quote
Old 12-04-2010, 08:53 PM   #2 (permalink)
Beast Mode
 
Join Date: Dec 2008
Age: 21
Posts: 1,971
Bertrand21 is on a distinguished road
Default

Quote:
Originally Posted by cpprulez View Post
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
Bertrand21 is offline   Reply With Quote
Old 12-05-2010, 01:28 AM   #3 (permalink)
Registered Member
 
Join Date: Sep 2009
Location: Sofia, Bulgaria
Posts: 29
cpprulez is on a distinguished road
Default

Quote:
Originally Posted by Bertrand21 View Post
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!
cpprulez is offline   Reply With Quote
Old 12-06-2010, 06:30 AM   #4 (permalink)
iOS / MacOS Developer
 
bharath2020's Avatar
 
Join Date: Oct 2008
Location: Bengaluru
Posts: 151
bharath2020 is on a distinguished road
Default

I had this issue even on Device, but with iOS 4.2 GM seed.

I filed a bug report, However, this issue seems to be fixed in iOS 4.2 Public release.
__________________
Bharath
iOS Blog : http://iphone2020.wordpress.com
bharath2020 is offline   Reply With Quote
Old 12-07-2010, 12:53 AM   #5 (permalink)
Registered Member
 
Join Date: Sep 2010
Posts: 6
cetcet is on a distinguished road
Default

Quote:
Originally Posted by bharath2020 View Post
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?
cetcet is offline   Reply With Quote
Old 12-29-2010, 01:28 AM   #6 (permalink)
Registered Member
 
Join Date: Jul 2009
Posts: 6
TSeller7 is on a distinguished road
Default Found this great tutorial for local notifications

Check out:

iOS Local Notifications Tutorial | iOS Tips and Tricks

A great tutorial on local notifications
TSeller7 is offline   Reply With Quote
Reply

Bookmarks

Tags
alert, local, notification, notifications, sound

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 370
6 members and 364 guests
chemistry, daudrizek, HemiMG, Kirkout, MarkC
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,665
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, daudrizek
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:51 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0