mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +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.
|
// Initiate registration.
|
||||||
self.voipRegistry.desiredPushTypes = [NSSet setWithObject:PKPushTypeVoIP];
|
self.voipRegistry.desiredPushTypes = [NSSet setWithObject:PKPushTypeVoIP];
|
||||||
|
|
||||||
|
[self configureUINotification];
|
||||||
|
}
|
||||||
|
|
||||||
|
- (void)configureUINotification {
|
||||||
if (floor(NSFoundationVersionNumber) <= NSFoundationVersionNumber_iOS_9_x_Max)
|
if (floor(NSFoundationVersionNumber) <= NSFoundationVersionNumber_iOS_9_x_Max)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
@ -554,6 +558,7 @@ didInvalidatePushTokenForType:(NSString *)type {
|
||||||
|
|
||||||
- (void)processPush:(NSDictionary *)userInfo {
|
- (void)processPush:(NSDictionary *)userInfo {
|
||||||
LOGI(@"Notification [%p] received with pay load : %@", userInfo, userInfo.description);
|
LOGI(@"Notification [%p] received with pay load : %@", userInfo, userInfo.description);
|
||||||
|
[self configureUINotification];
|
||||||
[LinphoneManager.instance setupNetworkReachabilityCallback];
|
[LinphoneManager.instance setupNetworkReachabilityCallback];
|
||||||
//to avoid IOS to suspend the app before being able to launch long running task
|
//to avoid IOS to suspend the app before being able to launch long running task
|
||||||
[self processRemoteNotification:userInfo];
|
[self processRemoteNotification:userInfo];
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue