handleNotification static method

Future<void> handleNotification(
  1. RemoteMessage message
)

Implementation

static Future<void> handleNotification(RemoteMessage message) async {
  switch (message.data['callType']) {
    case "RE_REGISTER":
      await registerWhenReceiveNotif();
      break;
    case "CANCEL_ALL":
    case "CANCEL_GROUP":
      FlutterCallkitIncoming.endAllCalls();
      Eraser.clearAllAppNotifications();
      break;
    case "CALL":
      handleShowCallKit(message);
      break;
    default:
      break;
  }
}