[📚] Cloud Messaging getToken() not updated to modular format
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!
Hi there, we should be migrating to a new document website which will include all examples in Modular.
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.
@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 :)
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.