categoryIdentifier
The identifier of the notification’s category.
Declaration
var categoryIdentifier: String { get set }Mentioned in
Discussion
Use notification types to distinguish between the different types of notifications your app supports. You use this support primarily to create actionable notifications with custom action buttons to redirect your notifications through either your notification service app extension or your notification content app extension.
Assign a value to this property that matches the identifier property of one of the UNNotificationCategory objects you previously registered with your app. If you assign a string that doesn’t match one of your registered categories, the system displays your notification without custom actions and without routing it through your app extensions.