mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-04 04:19:35 +00:00
add log to track push notification not intended to us
This commit is contained in:
parent
04cd24ad44
commit
accac28dc4
1 changed files with 2 additions and 2 deletions
|
|
@ -377,6 +377,7 @@
|
|||
NSString *sipInstance = [aps objectForKey:@"uuid"];
|
||||
if (sipInstance && uuid && ![sipInstance isEqualToString:uuid]) {
|
||||
LOGE(@"Notification [%p] was intended for another device, ignoring it.", userInfo);
|
||||
LOGD(@"My sip instance is: [%@], push was intended for: [%@].", uuid, sipInstance);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -480,8 +481,7 @@
|
|||
});
|
||||
}
|
||||
|
||||
- (void)pushRegistry:(PKPushRegistry *)registry
|
||||
didInvalidatePushTokenForType:(NSString *)type {
|
||||
- (void)pushRegistry:(PKPushRegistry *)registry didInvalidatePushTokenForType:(NSString *)type {
|
||||
LOGI(@"[PushKit] Token invalidated");
|
||||
dispatch_async(dispatch_get_main_queue(), ^{[LinphoneManager.instance setPushNotificationToken:nil];});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue