gpt4 book ai didi

ios - 分析被禁用。事件未记录

转载 作者:行者123 更新时间:2023-11-28 20:54:32 25 4
gpt4 key购买 nike

我最近将 Firebase 集成到我的 iOS 项目中,但我在记录事件时遇到了问题。自动屏幕录制工作正常(ViewControllers 显示在控制台中),但我无法手动记录事件:

Analytics.logEvent("test", parameters: nil)

我在调试控制台中收到以下消息:

[Firebase/Analytics][I-ACS023049] Analytics is disabled. Event not logged

我的 .plist 文件直接来自 Firebase(未经修改)并且 Firebase 配置报告如下:

2019-01-02 10:18:02.532838+0100 CLCarRental[90575:9644609] 5.12.0 - [Firebase/Analytics][I-ACS023007] Analytics v.50300000 started CLCarRental[90575:9644609] 5.12.0 - [Firebase/Analytics][I-ACS023009] Debug logging enabled 2019-01-02 10:18:02.535368+0100 CLCarRental[90575:9644609] 5.12.0 - [Firebase/Analytics][I-ACS023013] Analytics disabled 2019-01-02 10:18:02.537685+0100 CLCarRental[90575:9644393] Reachability Flag Status: -R ------- networkStatusForFlags 2019-01-02 10:18:02.624924+0100 CLCarRental[90575:9644606] [Answers] Answers enabled with settings:

{
"flush_interval_secs" = 300;
"flush_on_background" = 1;
"forward_to_google_analytics" = 0;
"include_purchase_events_in_forwarded_events" = 0;
"max_byte_size_per_file" = 8000;
"max_file_count_per_send" = 1;
"max_pending_send_file_count" = 100;
"sampling_rate" = 1;
"track_custom_events" = 1;
"track_predefined_events" = 1;
"track_view_controllers" = 0;
url = "https://e.crashlytics.com/spi/v2/events"; }

最佳答案

我找到了问题的根源。我必须在 Xcode 中设置以下命令(在调用 Firebase.configure() 之后):

AnalyticsConfiguration.shared().setAnalyticsCollectionEnabled(true)

使用较新的 SDK 时来自@Jeremy 的更新:

Analytics.setAnalyticsCollectionEnabled(true)

关于ios - 分析被禁用。事件未记录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54003914/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com