title: didReceiveRemoteNotification: fetchCompletionHandler: open from icon vs push notification
body: <p>I'm trying to implement background push notification handling, but I'm having issues with determining whether the user opened the app from the push notification that was sent as opposed to opening it from the icon.</p>
  
  <pre><code>- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler {
  
      //************************************************************
      // I only want this called if the user opened from swiping the push notification. 
      // Otherwise I just want to update the local model
      //************************************************************
      if(applicationState != UIApplicationStateActive) {
          MPOOpenViewController *openVc = [[MPOOpenViewController alloc] init];
          [self.navigationController pushViewController:openVc animated:NO];
      } else {
          ///Update local model
      }
  
      completionHandler(UIBackgroundFetchResultNewData);
  }
  </code></pre>
  
  <p>With this code, the app is opening to the MPOOpenViewController regardless of how the user opens the app. How can I make it so that the view controller is only pushed if they open the app from swiping the notification?</p>
  
  <p>With the same code, this worked on iOS 6, but with the new iOS 7 method, it doesn't behave how I want it to.</p>
  
  <p><strong>Edit:</strong> I'm trying to run the app on iOS 7 now, and we are not supporting any version prior to iOS 7. I used this same exact code in the iOS 6 version of the method (without the completion handler) and it behaved the way I'd expect it to. You'd swipe the notification and this would get called. If you opened from the icon, the method would never be called.</p>