我正在尝试检索所有仍显示在通知中心的已送达通知,但UNUserNotificationCenter getDeliveredNotifications(completionHandler:)
就是不起作用。我可以使用UNUserNotificationCenter getPendingNotificationRequests(completionHandler:)
获取所有未决的通知,但是即使通知中心有通知,getDeliveredNotifications
也总是返回0计数。
发布于 2018-02-15 06:10:36
根据这个:NUserNotificationCenter.current().getDeliveredNotifications only ever returns an empty array
将工卡编号设置为0将清除您的远程通知。
这会是问题所在吗?
https://stackoverflow.com/questions/48185375
复制相似问题