Button(s) (UNNotificationAction) defined for UNNotificationCategory do not show up, when the number of categories defined are around 1000 or above

Hi Guys,


For our app we define around 1000 categories. We notifice that in iOS 12, when these many categories are defined the buttons don't show up when notification is force touched. The below is the bug report that I filed with Apple. Wondering if any of you face this issue. And is there any workaround. We never had this issue with previous versions of iOS (9, 10 and 11).


https://bugreport.apple.com/web/?problemID=44680562


Thanks in Advance.


Summary:

Button(s) do not show up on notifications when number of categories (UNNotificationCategory) registered by app is around 1000.



This issue is observed only on iOS 12. This do not happen in iOS 11 and iOS 10.



Steps to Reproduce:

Have the app register around 1000 categories. Send a push notification whose payload is configured with a categoryIdentifier that has actions.



A local notification is also fine.



Expected Results:

When user 3D touches the notification or swipe and press view button, the notification interface should go full screen showing the buttons.



Actual Results:

The notification interface goes full screen but no buttons are shown.



Version/Build:

iOS 12.0 (16A366)

Replies

This issue persists on iOS 12.1 beta 1

Anyone using notification categories face this issue?

Is no one facing this issue?

Today I got reply from Apple Developer Relations,


Engineering has determined that this issue behaves as intended based on the following information:


We placed a limit on the number of categories.


============================================


Does anyone know this limit number or is it documented somewhere?