Android - FirebaseMessaging - FirebaseInstanceId:后台同步失败:MISSING_INSTANCEID_SERVICE [英] Android - FirebaseMessaging - FirebaseInstanceId﹕ background sync failed: MISSING_INSTANCEID_SERVICE

查看:4976
本文介绍了Android - FirebaseMessaging - FirebaseInstanceId:后台同步失败:MISSING_INSTANCEID_SERVICE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试 Firebase Cloud讯息,我正在按照此示例中的说明这里但我发现这个消息在我的android studio的日志猫窗口中:
com.example.tareq.news D / FirebaseInstanceId:后台同步失败:MISSING_INSTANCEID_SERVICE,在320s重试



请任何一个人可以帮我吗?感谢。



编辑:
我现在有一个新的exeption:

  D / FirebaseApp:com.google.firebase.auth.FirebaseAuth未链接。跳过初始化。 D / FirebaseApp:已初始化的类com.google.firebase.iid.FirebaseInstanceId。 
D / FirebaseApp:com.google.firebase.crash.FirebaseCrash未链接。跳过初始化
D / FirebaseApp:已初始化的类com.google.android.gms.measurement.AppMeasurement。
I / FirebaseInitProvider:FirebaseApp初始化成功



我发现这个问题,它是我有Android工作室版本1.0,但在需求提到,需要Android工作室版本1.5或更高
来自firebase文档的这个图片

解决方案

检查您的设备中是否安装了Google Play服务。如果没有它,Firebase将无法正常运行。



我建议您使用官方的用于发送通知的Firebase文档作为参考。



如果遇到问题,希望检查或比较您的实施与 Firebase云消息传递快速启动项目


I am trying Firebase Cloud messaging , i am follow instruction in this example here but i found this message in log cat window in my android studio: com.example.tareq.news D/FirebaseInstanceId﹕ background sync failed: MISSING_INSTANCEID_SERVICE, retry in 320s

please any one can help me? thanks.

EDIT: I have now a new exeption that is:

D/FirebaseApp﹕ com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization.

D/FirebaseApp﹕ Initialized class com.google.firebase.iid.FirebaseInstanceId. D/FirebaseApp﹕ com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization D/FirebaseApp﹕ Initialized class com.google.android.gms.measurement.AppMeasurement. I/FirebaseInitProvider﹕ FirebaseApp initialization successful

EDIT again:

I found the problem, it is i have android studio version 1.0 but in the requirement mentioned that require android studio version 1.5 or higher this image from firebase documentation

解决方案

Please check if you have Google Play Services installed in your device. Firebase won't work or run without it.

I'd suggest you to use the official Firebase documentation for sending Notifications as reference.

If you encounter an issue, you might want to check or compare your implementation with the Firebase Cloud Messaging Quickstart project.

这篇关于Android - FirebaseMessaging - FirebaseInstanceId:后台同步失败:MISSING_INSTANCEID_SERVICE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆