【发布时间】:2020-04-08 13:10:44
【问题描述】:
我正在使用 firebase 发送通知。
我的 firebase-messages 版本是:
implementation ("com.google.firebase:firebase-messaging:20.0.0")
我用google-service.json配置我的firebase
当我在browserstack 的模拟器上运行我的应用程序时,我收到了这个错误:
Failed to get FIS auth token 和 java.util.concurrent.ExecutionException: com.google.firebase.installations.FirebaseInstallationsException
好像是安装过来的
但是当我在物理 android 设备上运行它时,我没有收到错误,我成功获得了令牌...我只检查了一个物理设备。此外,我检查了 10 种不同的模拟器设备(包括我的物理设备只是在模拟器上),它们都显示相同的错误。
我试图将firebase-messaging 更改为版本20.1.0,但它并没有改变任何东西......
我不明白这可能是什么问题,尤其是它以前工作过,我没有改变任何东西,为什么它只发生在模拟器上而不是物理设备上
【问题讨论】:
标签: android firebase firebase-cloud-messaging browserstack