Firebase 自定义事件未显示在仪表板中

Firebase custom events don't show up in the dashboard

我想在 firebase 中创建一个事件来查看有多少用户使用 Facebook 共享功能。所以我像这样创建了这些事件:

import Firebase

Analytics.logEvent("Facebook Share Successful!", parameters: ["user_id": username])
Analytics.logEvent("Facebook Share Cancelled!", parameters: ["user_id": username])

但是在 Firebase 仪表板中,我看不到列出的事件。我也等了超过24小时。还有什么我需要做的我错过了吗?

更新

在 Misbah 建议包括调试模式后,我能够找到该事件,但是,它被记录为错误。

不喜欢命名中的space/exclamation标记。截图显示错误2.

2 Event name is invalid (empty, too long, invalid characters) Name of the invalid event The event is ignored and a firebase_error event is logged with a firebase_error_value parameter which indicates the invalid event name.

您是否尝试在 debugView 上启用调试模式和跟踪事件?

To enable Analytics Debug mode on your development device, specify the following command line argument in Xcode :

-FIRDebugEnabled

This behavior persists until you explicitly disable Debug mode by specifying the following command line argument :

-FIRDebugDisabled

更多信息在这里: https://firebase.google.com/docs/analytics/debugview