title: How to know a push message info if app is launched from background directly rather than from notification msg?
body: <p>I have properly registered for the push notification.
  Implemented following method to receive notification.</p>
  
  <pre><code>func application(application: UIApplication, didReceiveRemoteNotification userInfo: [NSObject : AnyObject])
  </code></pre>
  
  <p>Also used <code>UIApplicationLaunchOptionsRemoteNotificationKey</code> from <code>func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject : AnyObject]?) -&gt; Bool</code>.</p>
  
  <p>I'm able to receive notification when the app is active. I'm also able to see the notification if I open the app from the notification by selecting it from banner or alert.</p>
  
  <p>But if app is not active, it could be alive or killed and if a notification arrives at that point. And I ignore the notification and open the app by directly selecting the app icon from the home screen, I'm not getting the notification information in the <code>UIApplicationLaunchOptionsRemoteNotificationKey</code> from <code>func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject : AnyObject]?) -&gt; Bool</code>.</p>
  
  <p>So what is the right way to handle this scenario? Should the app call server and get the recent messages it sent? Any help is much appreciated.</p>