-
Hey guys, I am creating a new app using version 0.70.6 and @react-native-firebase/messaging ^17.3.1 But I have an old react native app version 0.62.3 using @react-native-firebase/messaging ^15.6.0 on App Store. I am facing some problems regarding FCMToken, especially this one: No APNS token specified before fetching FCM Token. Does anybody know how can I test on my computer without getting this "No APNS token specified before fetching FCM Token" problem? OBS: My Xcode is updated properly, because on my TestFlight app, I can login and also send push notifications |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
I think I found the problem. I changed the way my APNS token is used in my iOS, via firebase. And I need to force the update of all FCMToken that are used in the previous way. Does somebody know how to do it?? |
Beta Was this translation helpful? Give feedback.
-
Found it... As FCMToken is related to the user device, when I changed my certificate on firebase, some users that couldn't update their token couldn't access my platform. It is important to mention that the users had permission but couldn't get token
As a result, I needed to force the registration of their device by:
|
Beta Was this translation helpful? Give feedback.
-
My issue was resolved by adding onRegister() inside PushNotification.configure(). I was not setting the retrieved APNS token in messaging() before asking for the FCM token.
|
Beta Was this translation helpful? Give feedback.
Found it... As FCMToken is related to the user device, when I changed my certificate on firebase, some users that couldn't update their token couldn't access my platform. It is important to mention that the users had permission but couldn't get token
As a result, I needed to force the registration of their device by: