Thursday, October 29, 2026
HomeiOS Developmentios, swift: group native notifications collectively

ios, swift: group native notifications collectively

[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]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments