title: How to get Application states in iOS 10 notification?
body: <p>I am using </p>
  
  <pre><code>userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void(^)())completionHandler
  </code></pre>
  
  <p>for getting the notification response in iOS 10, can anyone tell me how to get the Application states in it ?</p>
  
  <p>Because in iOS 9 or before I used</p>
  
  <pre><code>application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler
  </code></pre>
  
  <p>In this method, we can get the application state by </p>
  
  <pre><code>application.applicationState
  </code></pre>
  
  <p>thanks for the help.</p>