Unable to receive notifications on iOS with cordova-plugin-fcm

Hello I would like to add Push Notification capabilities to my app. After some searching I’ve found that most the method that was used up until now is being phased out and the new Ionic Pro won’t offer Push Notifications.

After some further searching I came upon FCM and the cordova-plugin-fcm and ionic-fcm. I have managed to get it working on an android phone, however I am unable to get notifications to appear on iOS devices. The device receives a token, however when I send a notification from the FCM console it doesn’t appear on the iOS device, while Android devices receive it no problem. Any help would be really appreciated as I’ve been banging my head on this for quite some days now.

1 Like

Hello, any luck getting this to work on iOS? I’m in the same boat - unable to generate any tokens in iOS (not to talk of notifications), but works fine on an android device.

I’m pretty sure Apple doesn’t allow FCM notifications to be received by apps until they’re on the App Store.

I’m not 100% sure on that, but I am 90% sure.

If it’s not Apple that prevents it, it’s Firebase.

Thanks, @jaydz. Does that mean it can’t even generate a token?? I with the documentation would’ve mentioned that!
I’m using HockeyApp to distribute the app - I’m not ready for the App Store yet.

Can you recommend a different (or better) push notification plugin? I need to receive notifications from Google Cloud Messaging whenever the Firebase data changes. I tried OneSignal, but it doesn’t work with the free version of Firebase (which only does http request to a Google-owned domain, something like that). I tried phonegap-plugin-push a while back, but didn’t test on iOS.

Thanks, I appreciate it.

I had the same experience. Tokens would generate but The notification would never actually hit the app.

When I’ve used notifications in the past I used onesignal. Other than that, I have no clue. Sorry

No worries. I was finally able to generate token in iOS.
I guess I’ll have to publish the app in the App Store to get the notifications! That sucks!!!

Quick question - with OneSignal, did you have to publish your app to receive notifications too?

Thanks for your help!

No, I used an ad-hoc certificate instead of a developer certificate and it worked just fine