|
|
|
|
@ -133,6 +133,8 @@ class AppNotifications {
|
|
|
|
|
}
|
|
|
|
|
print("hereeee");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future<dynamic> backgroundMessageHandler(RemoteMessage message) async {
|
|
|
|
|
@ -142,7 +144,6 @@ Future<dynamic> backgroundMessageHandler(RemoteMessage message) async {
|
|
|
|
|
Utils.saveStringFromPrefs("isAppOpendByChat", "false");
|
|
|
|
|
Utils.saveStringFromPrefs("notificationData", message.data["user_chat_history_response"].toString());
|
|
|
|
|
} else if (message.data.isNotEmpty && message.data["messageType"] == 'call') {
|
|
|
|
|
logger.d(message.data);
|
|
|
|
|
ChatVoipCall().showCallkitIncoming(uuid: const Uuid().v4(), data: message, background: true);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|