Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Number of scheduled UILocalNotification

i'm working with UILocalNotification, and i have read the apple documentation about it at this link:

http://developer.apple.com/library/ios/#documentation/iphone/Reference/UILocalNotification_Class/Reference/Reference.html

but my question is how many notification i can schedule?...because here there write this:

the system keeps the soonest firing 64 notifications (with automatically rescheduled notifications counting as a single notification) and discards the rest.

so what this lines means?...i can schedule more than 64 notification or not? i don't want fire 64 at the same time, i only want schedule more than 64 notification...and then fire it when it's the firetime...

like image 685
Piero Avatar asked Jan 17 '23 19:01

Piero


1 Answers

You can schedule n number of notifications, if n is more than 64, only the soonest notifications will be scheduled, the rest will be lost.

That 64 notifications will be fired depending on the fireDate property. It doesn't matter wheter the notifications fireDate is the same.

Tha confusing part may be:

(with automatically rescheduled notifications counting as a single notification)

If you use the repeatingInterval property you can schedule "more" than 64 notifications using a NSCalendarUnit.

Handling more than 64 scheduled notifications can be managed by creating your own queue of notifications. I explain how to do it here.

like image 164
Edu Avatar answered Jan 25 '23 01:01

Edu