Я получаю два оповещения о приведенном ниже уведомлении и не могу понять, почему.Код, кажется, вызывается только один раз, но App: didReceiveLocalNotification вызывается дважды.И я не могу понять, почему!
NSLog(@"Configuring notifications time is up.");
noTimeLeft=[[UILocalNotification alloc]init];
noTimeLeft.fireDate=meterEndTime;
noTimeLeft.alertBody=@"Your parking meter has expired!";
noTimeLeft.alertAction=@"Go to meter";
noTimeLeft.userInfo=[NSDictionary dictionaryWithObject:self.meterEndTime forKey:@"NSDate"];
[[UIApplication sharedApplication] scheduleLocalNotification:noTimeLeft];
NSLog(@"Configuring notifications finished time is up.");