I have an app with local notification at the App Store.
In the last 4 version updates to my app, there were customers who experienced something strange - the app lo
Hey that is what is also happening with my app as well. My local notifications are getting fired in below scenerios :
1. user has deleted the app
-Actually its UILocalNotification
behave, we have to cancel them else IOS retain them for at least some time(not sure how long) when app is deleted and they were scheduled by the app at deletion time and were not canceled.
So always make sure when ever your app install happens,keep a check & cancel all scheduled notifications.
like
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
if(//its a fresh install){
[[UIApplication sharedApplication] cancelAllLocalNotifications];
}
}
cancelAllLocalNotifications
will cancel all existing notifications.
Hope it will help.