forked from mirrors/linphone-iphone
avoid app to be suspended before being able to start long running task
This commit is contained in:
parent
2e3b4b7501
commit
c15c6648bc
1 changed files with 2 additions and 3 deletions
|
|
@ -620,9 +620,8 @@ didInvalidatePushTokenForType:(NSString *)type {
|
|||
[[UNUserNotificationCenter currentNotificationCenter] setNotificationCategories:categories];
|
||||
}
|
||||
[LinphoneManager.instance setupNetworkReachabilityCallback];
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[self processRemoteNotification:payload.dictionaryPayload];
|
||||
});
|
||||
//to avoid IOS to suspend the app before being able to launch long running task
|
||||
[self processRemoteNotification:payload.dictionaryPayload];
|
||||
}
|
||||
|
||||
- (void)pushRegistry:(PKPushRegistry *)registry
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue