I've followed every step and did not manage to get notifications to work, I've managed to make them work before for few other application but since firebase updated to 4.5.0 I can't make them work. I get no errors what so ever. When I send notification to single device using token Firebase returns success but no notification is received on device. Have no idea what to do. And yes I did upload .p12 certificates to firebase in order to make them work. I'm stuck.
So app gives no errors and firebase gives no errors. I do get token from fcm.
Using react native 0.43.4
can you reproduce the error with example project?
If you have it worked earlier, it is likely some issue with firebase. have you tried to downgrade?
This has happened to us too. After upgrading Firebase/Messaging to 4.2.0 notifications have stopped working for iOS.
I've checked our APNs settings, certificates are the same and still valid. I've debugged it sending manually an APNs notification to my device token and it works. However through FCM API nothing gets displayed.
I'm guessing something has changed in iOS SDK that's breaking it. I'm gonna try to debug it
@evollu Didn't have time to try reproduce with example project and didn't try downgrading. I'll let you know tomorrow how it turns out.
Finally got it working after upgrading with pod update. The combination that works for me is:
- Firebase/Core (4.5.0)
- Firebase/Messaging (4.5.0)
- FirebaseInstanceID (2.0.5)
- FirebaseMessaging (2.0.6)
The most important part is FirebaseInstanceID which fixes some Firebase bugs: https://github.com/firebase/quickstart-ios/issues/327
Most helpful comment
Finally got it working after upgrading with
pod update. The combination that works for me is:The most important part is
FirebaseInstanceIDwhich fixes some Firebase bugs: https://github.com/firebase/quickstart-ios/issues/327