I'm using UILocalNotification in my project. My code:
UILocalNotification *notification = [[UILocalNotification alloc] init];
notification.fireDate = event.date;
notification.timeZone = [NSTimeZone systemTimeZone];
notification.hasAction = YES;
notification.soundName = UILocalNotificationDefaultSoundName;
[notification setApplicationIconBadgeNumber:[UIApplication sharedApplication].applicationIconBadgeNumber+1];
notification.alertBody = @"test alert body";
notification.repeatInterval = NSDayCalendarUnit;
NSLog(@"SCHEDULED NOTIFICATION = %@", notification);
[[UIApplication sharedApplication] scheduleLocalNotification:notification];
In time when notification should appear nothing is happen but application's badge icon value get +1. For iOS6 it's work fine. Where can be a problem?
UPDATE I do not get any alerts about notification while my app is run and when it's closed. Ony badge number is changing.