【问题标题】:Do I need to remove delivered notifications to not surpass the notification limit? - Swift我是否需要删除已发送的通知才能不超过通知限制? - 斯威夫特
【发布时间】:2020-08-17 03:16:08
【问题描述】:

我的应用每周安排 30 条通知。我一次只安排 30 个,因为限制为 64 个。因此,每周我都会通过删除它们(使用 center.removeAllPendingNotificationRequests())并重新触发它们来更新所有通知。我是否还需要致电center.removeAllDeliveredNotifications() 删除之前发送的通知,以免超过限制?还是发送的通知不计入限制?

【问题讨论】:

    标签: swift unusernotificationcenter


    【解决方案1】:

    iOS 正在限制待处理列表的长度,这意味着与传递的通知无关。

    但我只能找到可能与此相关的deprecated docradar

    【讨论】:

      猜你喜欢
      • 2021-02-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多