From accac28dc4674a40f75a307c20a124cd5b148c55 Mon Sep 17 00:00:00 2001 From: Benjamin Reis Date: Wed, 4 Jul 2018 11:56:57 +0200 Subject: [PATCH] add log to track push notification not intended to us --- Classes/LinphoneAppDelegate.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/LinphoneAppDelegate.m b/Classes/LinphoneAppDelegate.m index dfe47aa7a..d2ec03b1a 100644 --- a/Classes/LinphoneAppDelegate.m +++ b/Classes/LinphoneAppDelegate.m @@ -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];}); }