I want to test add local notification. I want it repeat daily/hourly. How can I do that?
NSCalendar *calendar = [NSCalendar autoupdatingCurrentCalendar];
/
UILocalNotification *localNotif = [[UILocalNotification alloc] init];
if (localNotif == nil) return;
NSDate *fireTime = [[NSDate date] dateByAddingTimeInterval:900]; // 15 minutes
localNotif.fireDate = fireTime;
localNotif.alertBody = @"15 min reached";
localNotif.repeatInterval=kCFCalendarUnitMinute;
[[UIApplication sharedApplication] scheduleLocalNotification:localNotif];