From cd3ab3aeb7fd4371a5226b12a4d941fad80214d9 Mon Sep 17 00:00:00 2001 From: Brieuc Viel Date: Mon, 11 Dec 2017 14:58:40 +0100 Subject: [PATCH] [PushNotif] add keep_alive on start LC to workaround push notif on chat message --- Classes/LinphoneManager.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Classes/LinphoneManager.m b/Classes/LinphoneManager.m index 8d15d0a13..1c3aad959 100644 --- a/Classes/LinphoneManager.m +++ b/Classes/LinphoneManager.m @@ -595,6 +595,8 @@ static void migrateWizardToAssistant(const char *entry, void *user_data) { reason:@"Linphone core not initialized yet" userInfo:nil]); } + //Force keep alive to workaround push notif on chat message + linphone_core_enable_keep_alive(theLinphoneCore, true); return theLinphoneCore; }