onNotificationTap static method

void onNotificationTap(
  1. NotificationResponse notificationResponse
)

Implementation

static void onNotificationTap(NotificationResponse notificationResponse) {

  String payload = notificationResponse.payload ?? "";

  NtiuspPush.shared._sendLog("푸시 읽음 onNotificationTap");
  //푸시 읽음 처리
  NtiuspPush.shared.confirmPushRead(payload);

  NtiuspPush.shared.getPayloadObject(payload).then((pObj) {
    NtiuspPush.shared._onReceivedNotificationHandler!(pObj);
  });

  //NtiuspPush.shared._onReceivedNotificationHandler!(payload);
}