Firebase分析- Firebase -core:9.0.0 - FirebaseInstanceId:后台同步失败:INVALID_SENDER

时间:2021-12-25 14:34:24

I followed the instructions on the following page: https://firebase.google.com/docs/android/setup#add_firebase_to_your_app

我遵循了以下页面的说明:https://firebase.google.com/docs/android/setup#add_firebase_to_your_app

The initialization process works fine but I see the error message like mentioned in the title.

初始化过程运行良好,但我看到了标题中提到的错误消息。

Do you know what to do?

你知道该怎么办吗?

4 个解决方案

#1


3  

After re downloading the google-services.json the message disappeared... Now I get "FirebaseInstanceId: topic sync succeeded".

重新下载google服务后。json消息消失了……现在我得到了“FirebaseInstanceId: topic sync成功”。

Thank you anyway. Maybe this will help someone.

无论如何谢谢你。也许这能帮助某些人。

#2


1  

You can safely ignore this working. Its overactive logging when the device is offline or fails to reach the server.

您可以安全地忽略这个工作。当设备脱机或无法到达服务器时,它的过度活跃日志记录。

#3


0  

For me, this happened when the emulator I was debugging on had no internet connection. This can happen if you change the internet settings within the emulator - it seems like the emulator may require a restart to make the internet connection work again even if you re-enable it in the emulator settings.

对我来说,这发生在我调试的模拟器没有网络连接的时候。如果更改模拟器中的internet设置,就会发生这种情况——看起来模拟器可能需要重新启动才能使internet连接再次工作,即使您在模拟器设置中重新启用它。

To get rid of the error - change the emulator settings to enable the internet then restart the emulator.

要消除错误——更改仿真器设置以启用internet,然后重新启动仿真器。

#4


0  

Make sure you project_number in your google-services.json matches the one in your Firebase Console.

确保您的google服务中有project_number。json匹配您的Firebase控制台中的一个。

#1


3  

After re downloading the google-services.json the message disappeared... Now I get "FirebaseInstanceId: topic sync succeeded".

重新下载google服务后。json消息消失了……现在我得到了“FirebaseInstanceId: topic sync成功”。

Thank you anyway. Maybe this will help someone.

无论如何谢谢你。也许这能帮助某些人。

#2


1  

You can safely ignore this working. Its overactive logging when the device is offline or fails to reach the server.

您可以安全地忽略这个工作。当设备脱机或无法到达服务器时,它的过度活跃日志记录。

#3


0  

For me, this happened when the emulator I was debugging on had no internet connection. This can happen if you change the internet settings within the emulator - it seems like the emulator may require a restart to make the internet connection work again even if you re-enable it in the emulator settings.

对我来说,这发生在我调试的模拟器没有网络连接的时候。如果更改模拟器中的internet设置,就会发生这种情况——看起来模拟器可能需要重新启动才能使internet连接再次工作,即使您在模拟器设置中重新启用它。

To get rid of the error - change the emulator settings to enable the internet then restart the emulator.

要消除错误——更改仿真器设置以启用internet,然后重新启动仿真器。

#4


0  

Make sure you project_number in your google-services.json matches the one in your Firebase Console.

确保您的google服务中有project_number。json匹配您的Firebase控制台中的一个。