Difference bwteen UNTimeIntervalNotificationTrigger and UNCalendarNotificationTrigger?

匆匆过客 提交于 2019-12-24 09:04:51

问题


My app is very notification dependent and I have recently noticed some notification issues which never used to be there before iOS 11.2.

1) Calling removeDeliveredNotifications on a notification by a UNCalendarNotificationTrigger does not remove it anymore, but it does remove notifications triggered by a UNTimeIntervalNotificationTrigger. (The fact that removeDeliveredNotifications doesn't work for UNCalendarNotificationTrigger seems very weird)

2) Pressing an action on a notification triggered by a UNCalendarNotificationTrigger results in all of the other notifications triggered with UNCalendarNotificationTrigger's to be removed, but does not remove any UNTimeIntervalNotificationTrigger triggered notifications.

Is this behaviour normal or have I missed something maybe in my Xcode project or in my understanding of these two triggers? Please help...

来源:https://stackoverflow.com/questions/48177108/difference-bwteen-untimeintervalnotificationtrigger-and-uncalendarnotificationtr

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!