社区首页 >问答首页 >UNUserNotificationCenter.current().getDeliveredNotifications仅返回空数组

UNUserNotificationCenter.current().getDeliveredNotifications仅返回空数组
EN

Stack Overflow用户
提问于 2018-01-10 10:33:11
回答 1查看 947关注 0票数 5

我正在尝试检索所有仍显示在通知中心的已送达通知,但UNUserNotificationCenter getDeliveredNotifications(completionHandler:)就是不起作用。我可以使用UNUserNotificationCenter getPendingNotificationRequests(completionHandler:)获取所有未决的通知,但是即使通知中心有通知,getDeliveredNotifications也总是返回0计数。

EN

回答 1

Stack Overflow用户

发布于 2018-02-15 06:10:36

根据这个:NUserNotificationCenter.current().getDeliveredNotifications only ever returns an empty array

将工卡编号设置为0将清除您的远程通知。

这会是问题所在吗?

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/48185375

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档