UILocalNotification* localNotification = [[UILocalNotification alloc] init];
localNotification.alertBody =[NSString stringWithFormat:@"meeting schedule from %@ ",[namelist objectAtIndex:i]];
localNotification.timeZone = [NSTimeZone defaultTimeZone];
localNotification.soundName = @"meetting.mp3";
[[UIApplication sharedApplication] scheduleLocalNotification:localNotification];
[[NSNotificationCenter defaultCenter] postNotificationName:@"timerInvoked" object:self];
I am using the above code to create local notifications. But previous notifications are not cleared. It again fires when new notifications are fired.
I use [[UIApplication sharedApplication] cancelAllLocalNotifications];
The notification is not fired in the back ground. How do I remove the notification after it has fired?