You will not be able to use repeatInterval , since you need a special repetition scheme. I think you need to schedule a local notification every day when you want to receive it:
- 28 notifications for every day of the first 4 weeks,
- 28 notifications for each day of the second period of 4 weeks,
- etc.
Some code that might help:
- (void)scheduleLocalNotificationsEachDayFor4WeeksStartingFrom:(NSDate *)dayOne {
You can use the scheduleLocalNotificationsEachDayFor4WeeksStartingFrom: method to schedule the 28 notifications required for each 4-week period. That way, you can simply run it as often as needed, invoking it from the first day of each period of 4 weeks, when you want notifications to start.
When you launch the application, you should clear all current local notifications and transfer them according to your requirements. In particular, you will need to configure whether the application will be launched within 4 weeks, when notifications should be launched. In this case, you will have to configure the proposed scheduleLocalNotificationsEachDayFor4WeeksStartingFrom method to reduce the number of scheduled notifications ...
source share