Firebase not getting entry on console

此生再无相见时 提交于 2019-12-23 03:11:03

问题


I have implemented firebase in my project, but I am not getting an entry in firebase console. I have been trying so many different ways. Anybody have any idea what's going wrong? i have implement like this.

firebaseAnalytics com.google.firebase.analytics.FirebaseAnalytics.getInstance(c);
    Bundle bundle = new Bundle();
  //  bundle.putString("Category", ""+Category);
    bundle.putString(FirebaseAnalytics.Param.ITEM_ID, Category);
    bundle.putString(FirebaseAnalytics.Param.ITEM_NAME, Category);
    bundle.putString(FirebaseAnalytics.Param.CONTENT_TYPE, Category1+" Store");
    firebaseAnalytics.logEvent(FirebaseAnalytics.Event.SELECT_CONTENT, bundle);
    firebaseAnalytics.setAnalyticsCollectionEnabled(true);`

回答1:


You can view aggregrated statistics about your events in the Firebase console dashboards. These dashboards update periodically throughout the day.

For immediate testing, you can enable verbose logging to monitor logging of events by the SDK to help verify that events are being logged properly. This includes both automatically and manually logged events.

adb shell setprop log.tag.FA VERBOSE
adb shell setprop log.tag.FA-SVC VERBOSE
adb logcat -v time -s FA FA-SVC

This command displays your events in the Android Studio logcat, helping you immediately verify that events are being sent.

For more information, visit the Firebase Analytics documentation for Android.



来源:https://stackoverflow.com/questions/39160638/firebase-not-getting-entry-on-console

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