codemagic-ci-cd / codemagic-docs

Here you’ll find some essential information for setting up CI/CD for your mobile apps with Codemagic.
https://docs.codemagic.io
MIT License
83 stars 121 forks source link

Flutter / FCM notifications not arriving on Codemagic iOS build #2068

Closed Aditya-QSS closed 1 year ago

Aditya-QSS commented 1 year ago

Discussed in https://github.com/orgs/codemagic-ci-cd/discussions/2064

Originally posted by **Aditya-QSS** September 22, 2023 ### If you are looking for help, please confirm the following... - [X] I confirm I have searched the [Docs](https://docs.codemagic.io), [Codemagic Sample Projects](https://github.com/codemagic-ci-cd/codemagic-sample-projects), and GitHub [Discussions](https://github.com/orgs/codemagic-ci-cd/discussions). - [X] I confirm the software versions on my local computer match the ones in CI environment (e.g. Xcode version, Gradle version). See [here](https://docs.codemagic.io/troubleshooting/common-android-issues/#builds-work-locally-but-fail-on-codemagic) - [X] I confirm I am able to do a fresh clone of the repository and build the project on my local computer. ### Which mobile framework are you using? Flutter (Dart) ### Steps to reproduce 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 built the app for the client to test (using Codemagic), the push notifications were not working on iOS (it does on Android). If it works on my development environment but not on Codemagic, everything is configured correctly except for Codemagic's build, right?? I did check the profile and the certificate generated by Codemagic and they were properly configured with Push Notifications. I set Codemagic after setting FCM and testing it on a local environment (and succeeding), so it should have worked I guess ### Expected results Push Notification should come for both Android and iOS build. ### Actual results Push Notification is coming in the Android build but not on the iOS build. However, I am getting push notifications when I am running the App on my real device but through codemagic build I am not getting push notifications. ### Build id (optional) _No response_
kevin-suhajda commented 1 year ago

Not an issue with documentation. Please continue in Discussions.