Flutter / FCM notifications not arriving on Codemagic iOS build


I’m trying to build a Flutter app for both Android and iOS. I’ve been implementing push notifications using Firestore Cloud Messaging (FCM) and it works for both Android and iOS when I’m testing on a simulator (Android) or on a connected physical device (iOS).

However, when I build the app for the client to test (using Codemagic), the push notifications are not working on iOS (it does on Android). If it works on my development environment but not on Codemagic, that means everything is configured correctly except for Codemagic’s build, right??

This is how I'm configuring it

I don’t think there’s an additional configuration to be done on Codemagic besides connecting the apple developer account. But if I had done a mistake connecting the account, then the team wouldn’t show up when I’m building the app I suppose.

Also, when I try sending a push notification via Postman using the FCM token generated by the iphone, it returns “NotRegistered“.

So what am I doing wrong?

Please, any help would be greatly appreciated.



In case anyone is having the same problem. I solved this simply by not using Codemagic for iOS deployment. I followed this guide instead: https://flutter.dev/docs/deployment/ios and deployed the iOS build on Apple’s TestFlight.

The push notifications worked great on iOS after installing the app from there.

Answered By – John

Leave a Comment