Firebase analytics are not appearing in the dashboard

拜拜、爱过 提交于 2019-12-11 13:32:13

问题


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

回答1:


The logcat looks healthy. "D/FA: Logging event" line show you that you have successfully logged the event. Please make sure the app is using the correct project id. The id is set in mobilesdk_app_id value in google-services.json file. You might be sending data to another project. One of the first lines that Firebase Analytics logs is the app package and firebase project it. Make sure it matches your Firebase project.




回答2:


Your logs suggest that even though call to

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

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

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.

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.

Hope this helps.



来源:https://stackoverflow.com/questions/37481070/firebase-analytics-are-not-appearing-in-the-dashboard

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!