Reputation: 9273
i'm working with UILocalNotification, and i have read the apple documentation about it at this link:
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...
Upvotes: 4
Views: 1658
Reputation: 111
It seems that in iOS 8.1 it is possible to schedule more than 64 notifications per app and all get fired. In my app I tested it with 500 and more local notifications and all get scheduled and fired on iPhone Simulator an on a real iPhone 5s. Maybe this is a bug in iOS 8.1 or Apple forgot to update the documentation.
Upvotes: 1
Reputation: 1413
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.
Upvotes: 8