[ad_1]
I am making an attempt to group completely different native notifications collectively, however iOS 15.2 appears to disregard the threadIdentifier parameter and it stills show the notifications in separate rows:
let set off = UNCalendarNotificationTrigger(dateMatching: dateComponents, repeats: true)
let notificationContent = UNMutableNotificationContent()
// ... extra properties
notificationContent.threadIdentifier = "please-group-together" // not working
let request = UNNotificationRequest(identifier: UUID().uuidString, content material: notificationContent, set off: set off)
UNUserNotificationCenter.present().add(request, withCompletionHandler: completion)
Am I lacking one thing?
[ad_2]
