From bd76b1988d0d2e7130097c272ef2caba024b5407 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 7ae5834ea..bcb6c6957 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]; }