From fcae5844539daa17beb964b53f5d2cf92c778c99 Mon Sep 17 00:00:00 2001 From: Benjamin Reis Date: Tue, 6 Feb 2018 11:36:35 +0100 Subject: [PATCH] add logging info --- Classes/LinphoneAppDelegate.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Classes/LinphoneAppDelegate.m b/Classes/LinphoneAppDelegate.m index 95274f849..9a54ffac8 100644 --- a/Classes/LinphoneAppDelegate.m +++ b/Classes/LinphoneAppDelegate.m @@ -448,9 +448,10 @@ [LinphoneManager.instance startPushLongRunningTask:TRUE callId:callId]; } - // if we receive a remote notification, it is probably because our TCP background socket was no more working. + // if we receive a push notification, it is probably because our TCP background socket was no more working. // As a result, break it and refresh registers in order to make sure to receive incoming INVITE or MESSAGE if (!linphone_core_is_network_reachable(LC)) { + LOGI(@"Notification [%p] : network is down, restarting it.", userInfo); LinphoneManager.instance.connectivity = none; //Force connectivity to be discovered again [LinphoneManager.instance setupNetworkReachabilityCallback]; }