如何使设备令牌扑来
我正在尝试从此代码中获取设备令牌,
FirebaseMessaging.instance.getToken().then((value) => print("token is $value"));
当我在模拟器上运行该应用时,它会打印令牌,但是当我在物理设备上运行应用程序时,它会给我这个错误,
java.util.concurrent.ExecutionException: com.google.firebase.installations.FirebaseInstallationsException: Firebase Installations Service is unavailable. Please try again later.
请帮助如何修复它。
I'm trying to get the device token from this code
FirebaseMessaging.instance.getToken().then((value) => print("token is $value"));
it prints the token when i run the app on emulator, but it gives me this error when i run the app on physical device
java.util.concurrent.ExecutionException: com.google.firebase.installations.FirebaseInstallationsException: Firebase Installations Service is unavailable. Please try again later.
please help how to fix it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有关设备信息:
集成此插件: device_info_plus: ^4.0.0.0
For Device Info:
Integrate this plugin:device_info_plus: ^4.0.0