re-add registration for messages

This commit is contained in:
REIS Benjamin 2016-09-12 14:39:25 +02:00
parent 2b2af02943
commit 4ae0e2bee1

View file

@ -452,6 +452,7 @@
- (void)pushRegistry:(PKPushRegistry *)registry
didInvalidatePushTokenForType:(NSString *)type {
LOGI(@"PushKit Token invalidated");
[LinphoneManager.instance setPushNotificationToken:nil];
}
- (void)pushRegistry:(PKPushRegistry *)registry
@ -469,6 +470,7 @@ didInvalidatePushTokenForType:(NSString *)type {
LOGI(@"PushKit credentials updated");
LOGI(@"voip token: %@", (credentials.token));
LOGI(@"%@ : %@", NSStringFromSelector(_cmd), credentials.token);
[LinphoneManager.instance setPushNotificationToken:credentials.token];
}
#pragma mark - User notifications