Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[🐛] 🔥 No APNS token specified before fetching FCM Token #7989

Closed
dmathewwws opened this issue Aug 26, 2024 · 1 comment
Closed

[🐛] 🔥 No APNS token specified before fetching FCM Token #7989

dmathewwws opened this issue Aug 26, 2024 · 1 comment
Labels
platform: ios plugin: messaging FCM only - ( messaging() ) - do not use for Notifications resolution: solution-provided type: bug New bug report

Comments

@dmathewwws
Copy link

dmathewwws commented Aug 26, 2024

Issue

I recently upgraded react-native and react-native-firebase and starting running into this issue:

[Error: [messaging/unknown] The operation couldn’t be completed. No APNS token specified before fetching FCM Token]

Logs in Xcode confirm swizzling is enabled and i'm running requestPermission() and checking for Authorization before running registerDeviceForRemoteMessages()

@dmathewwws dmathewwws changed the title 🔥 No APNS token specified before fetching FCM Token [🐛] 🔥 No APNS token specified before fetching FCM Token Aug 26, 2024
@russellwheatley
Copy link
Member

There is a lengthy thread on this issue here. Essentially, you need to receive the APNS token before attempting to fetch the FCM token.

@russellwheatley russellwheatley added platform: ios plugin: messaging FCM only - ( messaging() ) - do not use for Notifications resolution: solution-provided and removed Needs Attention labels Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: ios plugin: messaging FCM only - ( messaging() ) - do not use for Notifications resolution: solution-provided type: bug New bug report
Projects
None yet
Development

No branches or pull requests

5 participants
@dmathewwws @russellwheatley and others