handleNotification static method
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;
}
}