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].
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];
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
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?
you can use [[UIApplication sharedApplication] cancelAllLocalNotifications]; only at first launch, so that "old" notification will be cancelled....(I haven't tried that)