Notification Center alerts missing with Notification Grouping Automatic enabled

Originator:evan
Number:rdar://46736503 Date Originated:Dec 14, 2018
Status:Open Resolved:
Product:iOS + SDK Product Version:12.1
Classification:Bug Reproducible:Sometimes
 
Area:
Notification Center

Summary:
Not all alerts for notifications sent are seen in Notification Center groups. After investigating system logs, it appears that the notification messages are received on the device, but are not shown in Notification Center. 

This appears to occur with Notification Grouping setting "Automatic" selected for the App in question. Changing this setting to "Off" appears to eliminate the problem, and all expected notification alerts are seen in Notification Center.

Steps to Reproduce:
1. Select Notification Grouping "Automatic" setting for the App in question (and leave all other Notifications settings enabled, as by default)
2. Send a series of notifications (we've sent every 30 min in our testing)
3. After a period of several hours, check Notification Center, ensure the App remains closed during this period

Expected Results:
- Alerts for all notifications received are displayed in Notification Center, grouped automatically (e.g. in the case of simple notification payload, grouped together for the same App)

Actual Results:
- There are alerts missing from Notification Center, despite the system log showing that they were received. The attached screenshot shows an example of missing alerts from December 13 between 12:00AM and 7:00AM on a device. The logs from the attached sysdiagnose report show notifications were received every 30 min as expected during this timeframe.

We've been able to reproduce this multiple times, but only with Notification Grouping "Automatic" selected. We've also noted some differences in the system log entries from the Springboard process that appear related to notification "coalescing" when we search the logs for notifications that do appear in Notification Center vs. those that are missing. It seems like whatever is happening may be related to when Notification Grouping takes place. We've also noted more missing notification alerts when the device is locked for an extended period (eg. overnight), although we have observed the issue during shorter time-spans as well.

Version/Build:
- iOS 12.1
- Sample App com.peasi.notify-test build with Xcode Version 10.1

Configuration:
- Notifications authorized
- APNS development environment entitlement

We've tried sending different payloads to APNS with the same results. Most recent payloads are structured like this, changing the "alert" key value with notifications sent each 30 min:

{"aps":{"alert":"Test Message 14-00","badge":1,"thread-id":"NotifyTest"}}

We are not specifying an expiration or apns-collapse-id.

Comments

Has been marked as a duplicate of 44779081 in Apple Bug Reporter


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!