Cannot remove notification created using UNCalendarNotificationTrigger from notification center programmatically

Originator:bshimmy
Number:rdar://38557068 Date Originated:March 16 2018, 4:33 PM
Status:Closed - duplicate of 35991165 Resolved:
Product:iOS: UserNotifications Framework Product Version:11.2.6
Classification:Serious Bug Reproducible:Always
 
Area:
UserNotifications Framework

If you create a notification using UNCalendarNotificationTrigger as opposed to other triggers like UNTimeIntervalNotificationTrigger, and then try to remove that notification after it's been fired i.e. via removeDeliveredNotifications(withIdentifiers: …) or removeAllDeliveredNotifications on UNUserNotificationCenter.current(), the system will not remove those notifications from the notification center. removePending seems to work properly, but not removeDelivered.

e.g.
https://stackoverflow.com/questions/49328356/unusernotificationcenter-current-removependingnotificationrequestswithidentif


Have not tested on prior versions of iOS 11 or 10. 

Some related tickets on open radar: 
* https://openradar.appspot.com/36575570
* https://openradar.appspot.com/36019616

Comments

Marked as duplicate of 35991165

Apple apparently marked this as a duplicate of 35991165. Unfortunately you can't see what that ticket is and it's not on Open Radar.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!