Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom repeat interval for UILocalNotification

I tried the Re.minder app and noticed that it can repeat reminders with custom intervals (such as every 3 minutes, every 2 hours, every 4 days,...).

How can I do that?

like image 683
Arnol Avatar asked Apr 23 '11 05:04

Arnol


1 Answers

Thanks for trying our app! It turns out, we're not actually using UILocalNotification repeatInterval to accomplish that. Given it's limitations (only one NSCalendarUnit), we actually wrote our own scheduler. This has it's own limitations, mainly the 64 local notification queue limit per app. We essentially schedule and build our own queue, then fill the local notifications from that. Any time the user launches or makes a change in the app we reschedule.

Hope that helps!

like image 80
Jeremy Handel Avatar answered Oct 24 '22 21:10

Jeremy Handel