gpt4 book ai didi

ios - iOS 10 本地通知(UNNotificationRequest)限制

转载 作者:可可西里 更新时间:2023-11-01 03:31:32 25 4
gpt4 key购买 nike

我知道 UILocalNotification 的本地通知限制是 64。它写在Apple Dev Docs .但是 UILocalNotification 在 iOS 10 中被弃用了。Apple 建议使用 UNNotificationRequest 代替这个。但是Apple Dev Docs没有说限制通知的数量。我找到了这个 answer ,但它没有指向 Apple Dev Docs 或类似内容的链接(这只是一种意见)。有谁知道本地通知的限制吗?也许有人知道 Dev Docs 的链接,或者 Apple 是否对此有官方回应?

最佳答案

虽然没有正式记录,testing shows UNNotificationRequest 保留了 64 个通知限制。

然而,重要的是,他们处理通知队列的方式已经改变。如果超过 64 个通知:

  • UILocalNotification 将保留 64 个最快 通知
  • UNNotificationRequest 保留 64 个last set 通知

这可能是一个错误,记录在这个 radar 中.

关于ios - iOS 10 本地通知(UNNotificationRequest)限制,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43424044/

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