From b03ebd695f053505449cb9c96d5779d9c4d0d0af Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Sat, 19 Apr 2014 14:04:48 +0200 Subject: [PATCH] bugfix again --- Classes/LinphoneAppDelegate.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Classes/LinphoneAppDelegate.m b/Classes/LinphoneAppDelegate.m index bbcaf0a1d..bd7a32af8 100644 --- a/Classes/LinphoneAppDelegate.m +++ b/Classes/LinphoneAppDelegate.m @@ -210,6 +210,7 @@ - (void)processRemoteNotification:(NSDictionary*)userInfo{ if ([LinphoneManager instance].pushNotificationToken==Nil){ [LinphoneLogger log:LinphoneLoggerLog format:@"Ignoring push notification we did not subscribed."]; + return; } NSDictionary *aps = [userInfo objectForKey:@"aps"]; @@ -289,6 +290,7 @@ if (lm.pushNotificationToken==Nil){ [LinphoneLogger log:LinphoneLoggerLog format:@"Ignoring push notification we did not subscribed."]; + return; } // check that linphone is still running