title: didReceiveRemoteNotification function doesn't called with FCM notification server
body: <p>I'm using FCM server for remote notifications, it worked perfectly with sending and receiving notifications.</p>
  
  <p>My problem is when the device is in the background, this function <code>func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable : Any], fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -&gt; Void)</code> doesn't called.</p>
  
  <p>Solutions that I've tried:</p>
  
  <ul>
  <li><p>This function: </p>
  
  <pre><code>userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -&gt; Void)
  </code></pre></li>
  </ul>
  
  <p>is called when user tapped on the notification. Otherwise, it's not triggered.</p>
  
  <ul>
  <li><p>Adding <code>"content-available": true, "priority": "high"</code> to the payload. Also, I tried this value <code>"content-available": 1</code>.</p></li>
  <li><p>This is my function code:</p></li>
  </ul>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable : Any],
                       fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -&gt; Void) {
          
          print("userInfo: \(userInfo)")
        completionHandler(.newData);
    
      }</code></pre>
  </div>
  </div>
  </p>