mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
set pushnotif Token
This commit is contained in:
parent
59b325dabc
commit
1d375c34f6
1 changed files with 2 additions and 2 deletions
|
|
@ -507,7 +507,7 @@
|
|||
- (void)pushRegistry:(PKPushRegistry *)registry
|
||||
didInvalidatePushTokenForType:(NSString *)type {
|
||||
LOGI(@"PushKit Token invalidated");
|
||||
//dispatch_async(dispatch_get_main_queue(), ^{[LinphoneManager.instance setPushNotificationToken:nil];});
|
||||
dispatch_async(dispatch_get_main_queue(), ^{[LinphoneManager.instance setPushNotificationToken:nil];});
|
||||
}
|
||||
|
||||
- (void)pushRegistry:(PKPushRegistry *)registry
|
||||
|
|
@ -551,7 +551,7 @@ didInvalidatePushTokenForType:(NSString *)type {
|
|||
LOGI(@"PushKit credentials updated");
|
||||
LOGI(@"voip token: %@", (credentials.token));
|
||||
LOGI(@"%@ : %@", NSStringFromSelector(_cmd), credentials.token);
|
||||
//dispatch_async(dispatch_get_main_queue(), ^{[LinphoneManager.instance setPushNotificationToken:credentials.token];});
|
||||
dispatch_async(dispatch_get_main_queue(), ^{[LinphoneManager.instance setPushNotificationToken:credentials.token];});
|
||||
}
|
||||
|
||||
#pragma mark - UserNotifications Framework
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue