title: remote notification issue swift 3
body: <p>I have an app that receives push notification but I have a doubt:</p>
  
  <p>when app is in foreground and comes a remote notification I handle it but this method in AppDelegate:</p>
  
  <pre><code>func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable : Any], fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -&gt; Void) 
  </code></pre>
  
  <p>but I don't understand how do I have to handle the remote notification when comes a remote notification when app is in background and the user tap on rectangle of notification and then app opens.</p>