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
UNUserNotificationCenterDelegate method userNotificationCenter did receive response method not being called when notification is dismissed
Didn't find what you were looking for?
New post-
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 YorkComment actions -
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 -
If the
userNotificationCenter(_:didReceive:withCompletionHandler:)
method in theUNUserNotificationCenterDelegate
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 theUNNotificationContent
'scategoryIdentifier
along with a custom notification category that defines actions.Comment actions
Please sign in to leave a comment.
Comments
3 comments