From 91d88de896ee7d52f2ca7b4866fbd2b30fd5c676 Mon Sep 17 00:00:00 2001 From: Benjamin Reis Date: Wed, 25 Apr 2018 14:35:36 +0200 Subject: [PATCH] repair notificatoin action in bg --- Classes/LinphoneAppDelegate.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Classes/LinphoneAppDelegate.m b/Classes/LinphoneAppDelegate.m index 481845c48..b9c0e2815 100644 --- a/Classes/LinphoneAppDelegate.m +++ b/Classes/LinphoneAppDelegate.m @@ -228,6 +228,10 @@ // Initiate registration. self.voipRegistry.desiredPushTypes = [NSSet setWithObject:PKPushTypeVoIP]; + [self configureUINotification]; +} + +- (void)configureUINotification { if (floor(NSFoundationVersionNumber) <= NSFoundationVersionNumber_iOS_9_x_Max) return; @@ -554,6 +558,7 @@ didInvalidatePushTokenForType:(NSString *)type { - (void)processPush:(NSDictionary *)userInfo { LOGI(@"Notification [%p] received with pay load : %@", userInfo, userInfo.description); + [self configureUINotification]; [LinphoneManager.instance setupNetworkReachabilityCallback]; //to avoid IOS to suspend the app before being able to launch long running task [self processRemoteNotification:userInfo];