Firebase分析未出现在仪表板中 [英] Firebase analytics are not appearing in the dashboard

查看:45
本文介绍了Firebase分析未出现在仪表板中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经按照他们的文档集成了Firebase Analytics. 在两种情况下,我也都下载了他们的示例应用在日志中获取这些消息,以及在两种情况下都无法获取分析数据.

I have integrated Firebase Analytics by following their documentation And I have also downloaded their sample app, in both the cases I am getting these message in the logs and in both the cases I am not getting the analytics data.

在日志中,我收到此消息可以吗?

In log I am getting this message is this ok?

com.google.firebase.quickstart.analytics V/FA: Session started, time: 918306437
com.google.firebase.quickstart.analytics D/FA: Logging event (FE): _s, Bundle[{_o=auto}]
com.google.firebase.quickstart.analytics V/FA: Using measurement service
com.google.firebase.quickstart.analytics V/FA: Connecting to remote service
com.google.firebase.quickstart.analytics D/FA: Connected to remote service
com.google.firebase.quickstart.analytics V/FA: Processing queued up service tasks: 1
com.google.firebase.quickstart.analytics V/FA: Inactivity, disconnecting from AppMeasurementService

推荐答案

您的日志建议即使调用

记录事件(FE):_s,捆绑包[{_o = auto}]

Logging Event (FE): _s, Bundle[{_o=auto}]

成功,但尚未计划将事件上载到Firebase控制台.

is successful, yet the Event is not scheduled to be uploaded to the Firebase Console.

您的应用程序中是否有任何正在其他进程中运行的组件?因为如果您尝试从非主要流程组件记录事件,则该事件不会安排上传到Firebase.这样做的原因是,非主进程将实例化其 Application 对象,但不会实例化 ContentProviders (因为它们仅在主进程中实例化).因此,Firebase初始化只能在主要过程中进行.

Do you have any components which are running in some other process in your app? Because if you are trying to log a event from a non-main process component, it will not get scheduled to be uploaded to Firebase. The reason for this is that the non-main process will have its Application object instantiated but no ContentProviders (as they are instantiated only in the main process). Therefore Firebase initialisation can only happen in the main process.

另一个原因可能是您的 google-services.json 文件中的 client-id 与Firebase上指定的client-id不匹配.如果这不能解决您的问题,请提供更多信息.

Another reason could be if your client-id inside google-services.json file does not match with the client-id specified on Firebase. Please provide some more information if this doesn't solve your problem.

希望这会有所帮助.

这篇关于Firebase分析未出现在仪表板中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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