Notify application when a notification has been received and not tapped on or dismissed
<p>On iOS 10, is there any delegate to notify application that notification was not tapped on or it was cancelled? </p>

<p>I mean, how to get notification data even if the user has not tapped on it?</p>

<p>I have those two delegate methods which respond only when the user taps the notification:</p>

<pre><code>func userNotificationCenter(_ center: UNUserNotificationCenter,  willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (_ options:   UNNotificationPresentationOptions) -&gt; Void) {}

func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -&gt; Void) {}
</code></pre>