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 06-21-2010, 09:22 AM   #1 (permalink)
iOS / MacOS Developer
 
bharath2020's Avatar
 
Join Date: Oct 2008
Location: Bengaluru
Posts: 151
bharath2020 is on a distinguished road
Default UILocalnotification fire when app is deleted

Hello Experts,

Anyone tried the UILocalnotification??

If yes, I have a question for you.

There is some wierd thing happens when i try the following things

1. Run a sample test app linked to iOS 4
2. Schedule a Local Notification with repeated interval set to Every Minute
3. Quit the Applcation by pressing Home Button
4. Delete the Application from the Device before the Notification Fires.

There is no event informing the App which is running @ background except that it received SIGKILL.

Once the app is deleted, Ideally all the notifications related to it should be discarded. However, the Notifications keep posting, since i set its repeat interval, which is very annoying to the user, and I dont find anyway to STOP these notifications. [Even a device re-start is not helping the cause].


Please do give your thoughts

-Thanks
__________________
Bharath
iOS Blog : http://iphone2020.wordpress.com
bharath2020 is offline   Reply With Quote
Old 06-24-2010, 03:09 AM   #2 (permalink)
Registered Member
 
Join Date: Jun 2010
Posts: 1
elazh is on a distinguished road
Default

Quote:
Originally Posted by bharath2020 View Post
Hello Experts,

Anyone tried the UILocalnotification??

If yes, I have a question for you.

There is some wierd thing happens when i try the following things

1. Run a sample test app linked to iOS 4
2. Schedule a Local Notification with repeated interval set to Every Minute
3. Quit the Applcation by pressing Home Button
4. Delete the Application from the Device before the Notification Fires.

There is no event informing the App which is running @ background except that it received SIGKILL.

Once the app is deleted, Ideally all the notifications related to it should be discarded. However, the Notifications keep posting, since i set its repeat interval, which is very annoying to the user, and I dont find anyway to STOP these notifications. [Even a device re-start is not helping the cause].


Please do give your thoughts

-Thanks
Hey
[[UIApplication sharedApplication] cancelAllLocalNotifications];
OR
[[UIApplication sharedApplication] cancelLocalNotification:your current notification];
elazh is offline   Reply With Quote
Old 06-24-2010, 04:13 AM   #3 (permalink)
iOS / MacOS Developer
 
bharath2020's Avatar
 
Join Date: Oct 2008
Location: Bengaluru
Posts: 151
bharath2020 is on a distinguished road
Default

@elazh

cancelAllNotifications and and cancelNotification variant works fine when the application is not deleted from the device.

Anyhow, with the latest SDK and Latest iOS 4 release, This issue is fixed.
__________________
Bharath
iOS Blog : http://iphone2020.wordpress.com
bharath2020 is offline   Reply With Quote
Old 07-21-2010, 03:12 PM   #4 (permalink)
Registered Member
 
Join Date: Aug 2008
Posts: 135
mediashock is on a distinguished road
Default

Quote:
Originally Posted by bharath2020 View Post
@elazh

cancelAllNotifications and and cancelNotification variant works fine when the application is not deleted from the device.

Anyhow, with the latest SDK and Latest iOS 4 release, This issue is fixed.
This issue still exists with ios4, but instead of displaying the uilocalnotification it waits until you reinstall your app.. which could lead to 100000's of uinoficiations being launched once someone re installs your app.

What i am planning to do is to use [[UIApplication sharedApplication] cancelAllLocalNotifications];

But only when the app is deleted, is there a delegate method that gets called when an application is getting deleted?

because when the app is terminated i still need my uinofitications to fire
__________________
--- sup
mediashock is offline   Reply With Quote
Old 05-17-2011, 02:32 PM   #5 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 32
jazztpt is on a distinguished road
Default

Quote:
Originally Posted by mediashock View Post
This issue still exists with ios4, but instead of displaying the uilocalnotification it waits until you reinstall your app.. which could lead to 100000's of uinoficiations being launched once someone re installs your app.

What i am planning to do is to use [[UIApplication sharedApplication] cancelAllLocalNotifications];

But only when the app is deleted, is there a delegate method that gets called when an application is getting deleted?

because when the app is terminated i still need my uinofitications to fire
I'm having this problem too (scheduled local notifications are run after the app is deleted). Anyone solve it?
jazztpt is offline   Reply With Quote
Old 05-17-2011, 04:54 PM   #6 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

you can use [[UIApplication sharedApplication] cancelAllLocalNotifications]; only at first launch, so that "old" notification will be cancelled....(I haven't tried that)
__________________
dany_dev is offline   Reply With Quote
Reply

Bookmarks

Tags
app deleted, background, inactive, uilocalnotification

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: 332
8 members and 324 guests
anothermine, Chickenrig, Domele, givensur, heshiming, michaelhansen, PixelInteractive, Sloshmonster
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,657
Threads: 94,118
Posts: 402,892
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jenniead38
Powered by vBadvanced CMPS v3.1.0

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