react-native-firebase icon indicating copy to clipboard operation
react-native-firebase copied to clipboard

[📚] Cloud Messaging getToken() not updated to modular format

Open KaiValar opened this issue 4 months ago • 4 comments

Hi, I was migrating my app to v23 and I get a little outdated things on the docs and error message from getToken() modular function:

Due to a myself fault, my app didn't register the device to use Cloud messaging, so getToken() trew this error:

Error: [messaging/unregistered] You must be registered for remote messages before calling getToken, see messaging().registerDeviceForRemoteMessages().

This way of registering is outdated because registerDeviceForRemoteMessages() is a modular function too. And in the docs ( https://rnfirebase.io/messaging/usage#auto-registration-ios ) the way to register is outdated too in the same way, using deprecated namespace methods.

I solved my problem already, but I wanted to put my sand grain to support the project :)

Thanks and happy coding!

KaiValar avatar Sep 25 '25 10:09 KaiValar

Hi there, we should be migrating to a new document website which will include all examples in Modular.

MichaelVerdon avatar Sep 26 '25 09:09 MichaelVerdon

Hello 👋, to help manage issues we automatically close stale issues.

This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?

This issue will be closed in 15 days if no further activity occurs.

Thank you for your contributions.

github-actions[bot] avatar Oct 24 '25 10:10 github-actions[bot]

@MichaelVerdon do you know if there is a timeline on the migration to the new document website? I had the same issue recently and was looking to make a PR to update the cloud messaging docs with modular examples. Thank you :)

Seth-jo avatar Oct 30 '25 07:10 Seth-jo

Hello 👋, to help manage issues we automatically close stale issues.

This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?

This issue will be closed in 15 days if no further activity occurs.

Thank you for your contributions.

github-actions[bot] avatar Nov 27 '25 08:11 github-actions[bot]