Anyone got FCM to work on iOS 11?

Push is getting sent successfully with successful response. The push notification however doesn’t show up on iOS 11 device. Using cordova-plugin-fcm, ionic-native/fcm.

"@ionic-native/fcm": "^4.5.2",
"cordova-plugin-fcm": "^2.1.2",

I have ensured that I have enabled APN capabilities on Xcode, uploaded certificates on Firebase console, and set FCM Server key properly. Anyone got this to work? Thanks.

I struggled with this for a few hours today but got it working. I eventually deleted the app off of my test device and reinstalled so not sure if that was the missing piece of the puzzle or not.

Make sure you’ve got Capabilities > Background > Remote Notification checked in your XCode project

FYI, FCM push notifications won’t appear when app is in foreground. You’ll have to write a handler just like the docs…


    this.fcm.onNotification().subscribe(data=>{
      console.log('PUSH RECEIVED: ');
      if(data.wasTapped){
           //  For me, this is caught even when app
           //  isn't running and the push is tapped 
        console.log("Received in background, user tapped the notification");
      } else {
        console.log("Received in foreground, do something creative");
      };
    })