title: Retrieve notification type from userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:
body: <p>Is there any way to retrieve what type (<code>local</code> or <code>remote</code>) notification fired <code>userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:</code> ?</p>
  
  <p>I'm working on some kind of internal analytics module for my apps. In the each app I need to send to our analytics server specific information from notification userInfo and notification type (local or remote).</p>
  
  <p>To get <code>userInfo</code> I'm using the following code:</p>
  
  <pre><code>- (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void(^)())completionHandler {
      NSDictionary *userInfo = response.notification.request.content.userInfo;
      //app-specific logic goes here
      }
  </code></pre>
  
  <p>Of course when scheduling local notification, I can add specific parameter (to each app) to the <code>userInfo</code> to retrieve notification type. But might be more <em>clear</em> way exists to do what I want.</p>