ios - 无限显示本地通知

标签 ios swift core-data uilocalnotification

我有一个 swift 2 应用程序,您可以在其中创建核心数据条目。 每个条目都会注册一个本地通知。

问题是 64 个本地通知的限制。 有没有办法解决这个有限制的“问题”?

最佳答案

有点(感谢@dfri)。但是,重复的通知只算一个通知,但看起来你有 64 个完全独立的通知。

来自Local and Remote Notification Programming Guide :

Each app on a device is limited to 64 scheduled local notifications. The system discards scheduled notifications in excess of this limit, keeping only the 64 notifications that will fire the soonest. Recurring notifications are treated as a single notification.

唯一半可行的替代方案是(参见 this repo):

  1. 希望您的用户在收到 64 条通知后打开您的应用。
  2. 安排剩余的通知。

关于ios - 无限显示本地通知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35527869/

相关文章:

ios - 如何将 UIImage 异步加载到 SwiftUI Image 中?

iphone - 如何以编程方式在 iPhone 4S 上打开 AirPlay 屏幕镜像

ios - UICollectionView - 如何增加要分配的单元格数量

ios - 将数据从detailViewController向后传递到masterViewController

json - Swift 2.0 如何解析 JSON?

ios - 返回值时 iOS 中的线程问题

ios - 当视频从所有屏幕播放完毕时自动关闭 AVPlayer

ios - 核心数据 : nil is not a legal NSManagedObjectContext parameter

ios - countForFetchRequest 为空表返回 1

objective-c - 如何子类 NSArrayController 来选择添加 : 上的文本字段