Please Give me Solution i am Wating i have make one Alarm app ,alarm time i have set on local notification fireDate its working properly , and then i try to second time (Snooze time after 1 mint ) i can't able to set local notification , when i try to set second time local notification it's not fire on time otherwise its fire immediately WHERE I DO MISTAKE HERE IS MY CODE
int getTrackValue=[[defaults valueForKey:@"alarmTrack"] intValue];
NSString *soundName =[appDelegte.globalArrayTrack objectAtIndex:getTrackValue];
// set up the notifier
UILocalNotification *localNotification = [[UILocalNotification alloc]init];
localNotification.fireDate = notiAlarmTime;
localNotification.timeZone = [NSTimeZone systemTimeZone];
localNotification.alertBody=@"Please Off Alarm";
localNotification.alertAction = NSLocalizedString(@"Show", nil);
localNotification.soundName = [NSString stringWithFormat:@"%@.m4a",soundName];//@"Gentle Rise.m4a";
localNotification.hasAction = YES;
// Schedule the notification
[[UIApplication sharedApplication] scheduleLocalNotification:localNotification];
second time i am just change the time and call same function Please HELP ME Please share your valuable knowledge