gpt4 book ai didi

ios - 无限显示本地通知

转载 作者:搜寻专家 更新时间:2023-11-01 07:26:52 44 4
gpt4 key购买 nike

我有一个 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/

44 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com