title: Can't receive FCM Push Notifications for iOS
body: <p>I'm trying to use the Firebase Cloud Messaging (FCM) SDK to send push notification to iOS devices. I created a very simple application which has  an empty ViewController and an AppDelegate copied by that provided in the <a href="https://github.com/firebase/quickstart-ios/blob/master/messaging/MessagingExampleSwift/AppDelegate.swift#L160-L165" rel="nofollow noreferrer">quick start iOS project</a>.</p>
  
  <p>I followed all the instructions provided in the <a href="https://firebase.google.com/docs/cloud-messaging/ios/client" rel="nofollow noreferrer">guide</a>: </p>
  
  <p>Installed SDK using pod, here is my podFile:</p>
  
  <pre><code># Uncomment the next line to define a global platform for your project
  # platform :ios, '9.0'
  
  pod 'Firebase/Core'
  pod 'Firebase/Messaging'
  
  target 'fcmPushTest' do
  # Comment the next line if you're not using Swift and don't want to use 
  dynamic frameworks
  use_frameworks!
  
  # Pods for fcmPushTest
  
  end
  </code></pre>
  
  <ul>
  <li>Added the push notification in the "Capabilities" Tab in Xcode</li>
  <li>Generated APNs authentication key and APPID (the APPID was automatically generated by Xcode) on the apple developer portal</li>
  <li>Created a new project for my application in the Firebase developer console, downloading and copying the GoogleService-Info.plist file in the root directory of the project</li>
  <li>Uploaded the APNs authentication key in the Firebase developer console </li>
  <li>Installed the app and put it in background (notifications do not appear when app is in foreground)</li>
  </ul>
  
  <p>When the application starts, it correctly returns an FCM token. Then I use this token in the FCM push notification console in order to send a message but nothing happens: notification is not received even if the console says that the message has been "completed"
  <a href="https://i.stack.imgur.com/0R6g7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0R6g7.png" alt="enter image description here"></a></p>
  
  <p>Trying to send the notification with curl </p>
  
  <pre><code>curl -X POST --header "Authorization: key=&lt;API_ACCESS_KEY&gt;" \
  --Header "Content-Type: application/json" \
  https://fcm.googleapis.com/fcm/send \
  -d "{\"to\":\"&lt;YOUR_DEVICE_ID_TOKEN&gt;\",\"notification\":{\"body\":\"Yellow\"},\"priority\":10}"
  </code></pre>
  
  <p>I obtain the following response:</p>
  
  <pre><code>{"multicast_id":7144776975498650143,"success":1,"failure":0,"canonical_ids":0,"results":[{"message_id":"0:1510221288971805%7fe9e2a37fe9e2a3"}]}
  </code></pre>
  
  <p>Since success is equal to 1 i guess that all is ok but I still get no notifications.</p>
  
  <p>I googled for a possibile cause of the problem but it seems that Firebase Messaging Libraries have been recently changed (pod says I'm using the FirebaseMessaging 2.0.3 version) so i can't find a proper solution. </p>