onDidReceiveNotificationResponse method

void onDidReceiveNotificationResponse(
  1. NotificationResponse notificationResponse
)

Implementation

void onDidReceiveNotificationResponse(NotificationResponse notificationResponse) {
  AppLogs.showInfoLogs('Notification payload: ${notificationResponse.payload}');
  if (notificationResponse.payload != null) {
    // Handle payload, e.g., navigation
  }
}