Question:
I am getting the following error and my device is not able to register for push notifications.
[PushRegistrarFCM] FCM registration error: Failed to retrieve token. Is firebase configured correctly?
How can I fix this?
Answer:
If you use any cross-platform framework to develop your application, then starting with the versions specified in the following list, in order to integrate our SDK/Plugin correctly, it is necessary to place the google-services.json file within your project as per our integration guide.
Check the version of the Pushwosh SDK/Plugin in your application, retrieve the google-services.json file and place it to your project.
Please keep in mind that the Pushwoosh Integration guide is individual for each cross-platform framework:
https://pushwoosh.gitbook.io/platform-docs/pushwoosh-sdk/cross-platform-frameworks
Comments
1 comment
In the wild I have seen this appear for a period of time, and then go away again. I believe this area would greatly benefit from extra logging and error reporting, perhaps when using the 'VERBOSE' setting. It would get great to find out what is actually going on here so that it can be handled and perhaps reported to the user.
Please sign in to leave a comment.