title: UILocalnotification not working after killing the app from background
body: <p>I am working with UIlocalnotifications, So whenever a notification pops up,and user clicks on it I open ViewController , so whenever my app is in background, and when notification pops up and when user clicks on it or on the app icon, I am able to show the ViewController.</p>
  
  <p>But whenever user kills the app from background, and when notification occurs, if he clicks on notification, I am able to show the ViewController, but if I click on app Icon, I am not able to show ViewController</p>
  
  <p>Below is my code</p>
  
  <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  {
   UILocalNotification *locationNotification = [launchOptions objectForKey:UIApplicationLaunchOptionsLocalNotificationKey];
      if (locationNotification) {
          // Set icon badge number to zero
          application.applicationIconBadgeNumber = 0;
  
  
         AlarmViewController *alarmView = [[AlarmViewController alloc]initWithNibName: @"AlarmViewController" bundle:nil];    
      UINavigationController *navController = [[UINavigationController alloc]initWithRootViewController:alarmView];
      [self.window.rootViewController presentViewController:navController animated:YES completion:nil];
  
      }
  }
  </code></pre>
  
  <p>I tried to debug this problem, and what I found is that, whenever I click on the app icon, its not getting any localnotification.Only if I click on the notification, I get a localnotification. I dont know whenether this is a bug, or whether I am missing something.</p>
  
  <p>So please help me out</p>
  
  <p>Regards
  Ranjit.</p>