我正在将 Log Events
发送到 fireBase
,如下所示:
FirebaseAnalytics mFirebaseAnalytics = FirebaseAnalytics.getInstance(this);
Bundle bundle = new Bundle();
bundle.putInt("vendor_id", 588);
mFirebaseAnalytics.logEvent("manage_price_products", bundle);
但我在我的控制台
中看不到任何Event
!
最佳答案
根据这个https://support.google.com/firebase/answer/7201382?hl=en&utm_id=ad , 事件不会立即发送,但您可以激活设备中的 DebugView,这样您就可以实时查看事件。为此,打开模拟器(或保持设备连接)并在终端中运行以下命令
adb shell setprop debug.firebase.analytics.app <package_name>
然后转到您的 firebase 控制台 - 在 DebugView 中。你可以实时看到事件。禁用 DebugView 运行
adb shell setprop debug.firebase.analytics.app .none.
(这仅适用于 Android)
关于Android - 我在 firebase 控制台中看不到任何事件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48092075/