I know that the limit of local notifications is 64 for UILocalNotification. It's written in Apple Dev Docs. But UILocalNotification is deprecated in iOS 10. Instead this one, Apple proposes to use UNNotificationRequest. But Apple Dev Docs doesn't say anything about limiting the count of notifications. I found this answer, but it doesn't have links to Apple Dev Docs or something like that (it's just an opinion). Does anyone know for sure about restrictions of local notifications? Maybe someone know the link to Dev Docs or is there an official response from Apple about this?
相关问题
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
- Get the NSRange for the visible text after scroll
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Swift - hide pickerView after value selected
- How do you detect key up / key down events from a
- didBeginContact:(SKPhysicsContact *)contact not in
- Attempt to present UIAlertController on View Contr
Yes indeed, I just checked for iOS 10.2 and the limit for the total number of UNNotificationRequest you can add is still 64.
Although it's not officially documented, testing shows that
UNNotificationRequest
retains the 64 notification limit.However, importantly, the way that they deal with the notification queue has changed. If there are more than 64 notifications:
UILocalNotification
would keep the 64 soonest notificationsUNNotificationRequest
keeps the 64 last set notificationsThis may be a bug, and is documented in this radar.