Flutter Firebase Analytics 不记录事件
Flutter Firebase Analytics Not Logging Event
您好,我刚刚将 Firebase Analytics 添加到我的 Flutter 应用程序中。我添加了两个功能。
- 设置当前屏幕。
- 记录事件。
设置当前屏幕工作正常。我能够看到 Analytics/Events/Screen_views 中的屏幕。所以 Firebase 配置一定是正确的。
日志事件未显示任何错误,但它未显示在 firebase 仪表板中的任何位置。我有一个活动 "Home page Loaded"。这是我的代码。
我已经等了48个多小时了
等待analytics.logEvent(
名称:事件名称,
参数: {
},
);
有没有人在 Flutter 应用程序中实施过 Firebase Analytics。
事件或参数名称中不能有空格,只能在值中,将Home page Loaded
更改为Home_page_Loaded
(我个人喜欢全部小写)。
来自文档:
The name of the event. Should contain 1 to 40 alphanumeric characters or underscores. The name must start with an alphabetic character. Some event names are reserved
您好,我刚刚将 Firebase Analytics 添加到我的 Flutter 应用程序中。我添加了两个功能。
- 设置当前屏幕。
- 记录事件。
设置当前屏幕工作正常。我能够看到 Analytics/Events/Screen_views 中的屏幕。所以 Firebase 配置一定是正确的。
日志事件未显示任何错误,但它未显示在 firebase 仪表板中的任何位置。我有一个活动 "Home page Loaded"。这是我的代码。
我已经等了48个多小时了
等待analytics.logEvent( 名称:事件名称, 参数: { }, );
有没有人在 Flutter 应用程序中实施过 Firebase Analytics。
事件或参数名称中不能有空格,只能在值中,将Home page Loaded
更改为Home_page_Loaded
(我个人喜欢全部小写)。
来自文档:
The name of the event. Should contain 1 to 40 alphanumeric characters or underscores. The name must start with an alphabetic character. Some event names are reserved