development_aamir_testing23
Aamir Muhammad 2 years ago
parent 39bcf5c3d9
commit 748e170e02

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

Loading…
Cancel
Save