I am setting multiple local Notification and I have set number of actions to notification . like snooze , show , close .
func didReceive(_ response: UNNotificationResponse, completionHandler completion: @escaping (UNNotificationContentExtensionResponseOption) -> Void) {
let id = response.notification.request.identifier
if response.actionIdentifier == "SnoozeId" {
completion(UNNotificationContentExtensionResponseOption.dismiss)
}}
On didReceive - if action is snooze - perform snooze and then i dismiss the notifiction . as i dismiss all the other notifications are gone from notification centre . If I have two Notification A and B . If i longpress and perform snooze on A . Both A and B are gone from notificaiton centre . it should dismiss only A.