mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
repair notificatoin action in bg
This commit is contained in:
parent
944400bb0b
commit
91d88de896
1 changed files with 5 additions and 0 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue