From ab2d6d8897af39e3ede4bdf1cea1f2a33750f62e Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Wed, 3 Oct 2012 16:08:48 +0200 Subject: [PATCH] support for remote notification when app is started (not resumed) --- Classes/LinphoneAppDelegate.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Classes/LinphoneAppDelegate.m b/Classes/LinphoneAppDelegate.m index df79dbbb6..3865666a1 100644 --- a/Classes/LinphoneAppDelegate.m +++ b/Classes/LinphoneAppDelegate.m @@ -162,10 +162,10 @@ } [self startApplication]; - NSDictionary *aps=[launchOptions objectForKey:@"aps"]; - if (aps){ + NSDictionary *remoteNotif =[launchOptions objectForKey:UIApplicationLaunchOptionsRemoteNotificationKey]; + if (remoteNotif){ [LinphoneLogger log:LinphoneLoggerLog format:@"PushNotification from launch received."]; - [self processRemoteNotification:launchOptions]; + [self processRemoteNotification:remoteNotif]; } return YES; }