iOS 11.2 beta4 Delivered notifications list is empty

Number:rdar://35676570 Date Originated:11/23/17
Status:CLOSED Resolved:YES
Product:iOS Product Version:11.2 beta4
Classification:Other Reproducible:100%
UserNotifications Framework

UNUserNotificationCenter returns empty array of delivered notifications

Steps to Reproduce:
1. Schedule Local notification. In my case I schedule UNNotificationRequest using "- (void)addNotificationRequest:(UNNotificationRequest *)request withCompletionHandler:(nullable void(^)(NSError *__nullable error))completionHandler" method.
2. Move app to background (lock screen, or press home button)
3. Wait for local notification. Make sure it appears in Notification Center on iPad
4. Move app to foreground. (Do not click on notification in Notification Center).
5. Check delivered notifications count in "- (void)applicationDidBecomeActive:(UIApplication *)application" method of AppDelegate

My code is:

- (void)applicationDidBecomeActive:(UIApplication *)application
[[UNUserNotificationCenter currentNotificationCenter] getDeliveredNotificationsWithCompletionHandler:^(NSArray  * _Nonnull unNotifications)
     NSLog(@"%lu", unNotifications.count);

Expected Results:
count should be 1. It works on iOS 11.0 beta4 and iOS11.1. Stopped working on iOS 11.2beta4

Actual Results:
count is 0.

iPad Air2 iOS 11.2 beta4

iPad Air2 iOS 11.2 beta4
xCode 9.2 beta


Fixed in iOS 11.3 Beta 2

By dkulemalin at Feb. 13, 2018, 8:25 a.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at 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!