UNUserNotificationCenterDelegate method userNotificationCenter did receive response method not being called when notification is dismissed

Hello I'm trying to send to our analytics suscriber an event when the user dismisses the notification, but the delegate method is not being called when I dismiss a test notification, only when I tap on it it's being called, anybody can help me debug this? Thanks

Didn't find what you were looking for?

New post

Comments

3 comments

  • Hi there, 

    In order to further troubleshoot this issue, I've gone ahead and created a support ticket. You can respond directly to the email from support. 

    Thanks so much, 

    Frenchy F.
    Technical Support Engineer | Airship | New York

    Comment actions Permalink
  • When working with UNUserNotificationCenterDelegate in an iOS application, you may encounter a situation where the userNotificationCenter(_:didReceive:withCompletionHandler:) method is not being called when a notification is dismissed by the user. This is because this delegate method is specifically triggered when the user interacts with the notification, such as tapping on it or interacting with any actionable buttons. Dismissing a notification Show now by swiping it away does not count as an interaction that will invoke this delegate method. 

    Comment actions Permalink
    0
  • If the userNotificationCenter(_:didReceive:withCompletionHandler:) method in the UNUserNotificationCenterDelegate is not being called when a notification is dismissed, it's important to understand that this method is designed to handle user interactions with notifications, such as when the user taps on or acts Security Guard Services in Melbourne on a notification. Dismissing a notification (by swiping it away, for example) is not considered an "interaction" in this context. To track when a notification is dismissed, you can implement the UNNotificationContent's categoryIdentifier along with a custom notification category that defines actions.

    Comment actions Permalink
    0

Please sign in to leave a comment.