handleNotificationCanceled

fun handleNotificationCanceled(pushBundle: Bundle)

Internal method that handles notification dismissal events.

This is a final method called by the SDK when a user swipes away or dismisses a notification from the notification center. It delegates to onMessageCanceled for custom handling.

You should override onMessageCanceled instead of calling this method directly. Example:



protected void onMessageCanceled(PushMessage message) {
    // Track dismissal in analytics
    String messageId = message.getCustomData().getString("message_id");
    Analytics.track("notification_dismissed", messageId);

    // Update unread count
    decrementUnreadNotifications();
}

Parameters

pushBundle

push notification payload as Bundle containing all notification data

See also