[messaging/unregistered] You must be registered for remote messages before calling getToken, see messaging().registerDeviceForRemoteMessages(). #4646
Replies: 3 comments 1 reply
-
I am not certain on this, but have you tried creating an empty firebase.json? I have a vague recollection that fixed something else, and may result in default initialization (and thus no warnings) as expected |
Beta Was this translation helpful? Give feedback.
-
Thanks for answer! I will try this option with the next release and keep tracking if it'll be resolved |
Beta Was this translation helpful? Give feedback.
-
No luck, the problem persist :( I created the file {
"react-native": {
"messaging_ios_auto_register_for_remote_messages": true
}
} Apparently this happen only on iOS Does someone has another tip? |
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.
-
Hi,
I'm receiving this error message on Sentry
But I don't have a
firebase.json
in my project neither disabled the auto-registration option.And if I manually enable the registration in my app by
messaging().registerDeviceForRemoteMessages()
, I receive this warnEven if I check for registration with
Does anyone has any tips how to handle this? Or at least just remove this warning?
Beta Was this translation helpful? Give feedback.
All reactions