lionheart / openradar-mirror

A mirror of radars pulled from http://openradar.me/.
244 stars 17 forks source link

45325233: UNNotificationCategory Not Updating in Notification Service Extension Targets #20575

Open openradar-mirror opened 6 years ago

openradar-mirror commented 6 years ago

Description

Area: UserNotifications Framework

Summary: We have a popular push notification SDK (OneSignal). Our SDK allows apps to attach images to their push notifications dynamically. To do this, we register buttons/etc. to a UNNotificationCategory in a Notification Service Extension.

This has worked perfectly since iOS 10. However, now in iOS 12, we are seeing occasional issues, especially for newly installed apps, where actions/attachments registered to a UNNotificationCategory don't show up on notifications.

Steps to Reproduce:

  1. Add a Notification Service Extension target to an app
  2. In the Notification Service Extension in the didReceiveNotificationRequest method, create a UNNotificationCategory and add some actions to it, and register the new category using UNUserNotificationCenter.current.setNotificationCategories([your_category])
  3. To make sure the notification uses this category, on the UNMutableNotificationContent instance, set the categoryIdentifier to be the same as the category created in step 2

Expected Results: The notification should now have the buttons from step 2.

Actual Results: However in our testing (and for many app developers using our SDK), notifications often seem to ignore the category identifier and don't show the correct actions.

Version/Build: iOS 12.0.0

- Product Version: 12.0.0 Created: 2018-10-17T01:20:05.059262 Originated: 2018-10-16T00:00:00 Open Radar Link: http://www.openradar.me/45325233

openradar-mirror commented 6 years ago

Modified: 2018-10-17T22:33:46.111534

openradar-mirror commented 6 years ago

Modified: 2018-10-17T22:33:46.111534

openradar-mirror commented 6 years ago

Modified: 2018-10-17T22:33:46.111534

openradar-mirror commented 6 years ago

Modified: 2018-10-17T22:33:46.111534

openradar-mirror commented 6 years ago

Modified: 2018-10-17T22:33:46.111534

openradar-mirror commented 6 years ago

Modified: 2018-10-17T22:33:46.111534

openradar-mirror commented 6 years ago

Modified: 2018-10-17T22:33:46.111534

openradar-mirror commented 6 years ago

Modified: 2018-10-17T22:33:46.111534

openradar-mirror commented 6 years ago

Modified: 2018-10-17T22:33:46.111534

openradar-mirror commented 6 years ago

Modified: 2018-10-17T22:33:46.111534

openradar-mirror commented 6 years ago

Modified: 2018-10-31T19:19:53.412794