Can't get Cloud Messaging to work in iOS #6193
Replies: 5 comments 12 replies
-
Hi there!
Interesting stuff here: This one is especially promising: https://stackoverflow.com/questions/69485088/error-apns-device-token-not-set-before-retrieving-fcm-token-for-sender-id - have you tried the things there (the p8 thing is subtle for sure...) What happens if you combine the permission + subscribe useMount calls, and put a getToken in between them 🤔 ? |
Beta Was this translation helpful? Give feedback.
-
Same here. Previously working push notifications just stoped working.
and I found this info here https://developer.apple.com/support/expiration/ and noticed that apple push notification certificates in my keychain weren't trusted and the G4 of Worldwide Developer Relations was actually missing. After downloading it and adding it to the keychain the problem was resolved. |
Beta Was this translation helpful? Give feedback.
-
I am also having difficulty in making Cloud Messaging work on iOS. ProblemWhile I try to get the FCM token, this error is logged on console (I am using a real device, not simulator) Code
I did everything mentioned in the previous posts. I also have fresh app id, key, and provisioning files. I still have no idea what is happening. Is there anything that I am possibly missing? Thanks! |
Beta Was this translation helpful? Give feedback.
-
I followed all the steps and solutions mentioned above and still could not receive notifications on my iOS app. |
Beta Was this translation helpful? Give feedback.
-
hmm 🤔 code:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Problem:
No notifications appear on my physical iOS device.
Background:
I've used this library for push notifications since before Notifee existed. I migrated to Notifee because I incorrectly thought it was required to get any notifications. Now, I've removed Notifee and gotten notifications working again on Android with just
@react-native-firebase/messaging
.I'm sending broadcast notifications to topics, not individual devices. I've ran through the iOS Messaging Setup page multiple times to make sure I haven't missed anything. I have a screen that requests push notification permissions on iOS. I'm using the default auto initialization and automatic registering for remote messages. I'm using version 14.7.0 of the libraries.
I'm getting seeing these messages which might be related in the Xcode console:
and
Code:
Beta Was this translation helpful? Give feedback.
All reactions