Unity Firebase Analytics事件未显示

4
我在我的Unity应用中安装了Firebase插件,一切都很顺利(Android版本)。我尝试使用iOS版本,但它没有记录事件。我知道事件需要几个小时才会出现,但是它们在1天后或调试模式下仍未出现。
对于调试模式,我像教程中一样添加了“-FIRAnalyticsDebugEnabled”参数(https://firebase.google.com/docs/analytics/ios/events#view_events_in_the_xcode_debug_console)。 在另一个网站上(https://support.google.com/firebase/answer/7201382?hl=pt&utm_id=ad),我发现还有另一个参数“-FIRDebugEnabled”。 我尝试了两者,但都没有记录我的事件。
我注意到的另一件事是,在Firebase网站上下载的“GoogleService-Info.plist”文件带有变量“IS_ANALYTICS_ENABLED”= false。教程中没有说明(https://firebase.google.com/docs/analytics/unity/start?hl=pt-br),但我将其设置为true。
我做错了什么吗?
编辑(日志):
2017-05-29 12:54:41.638343 brincando[22620:5072036] [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: 
post_score, 
{     
    firebase_screen_id (_si) = -396951154609863799;     
    score = 42;     
    firebase_screen_class (_sc) = UnityDefaultViewController;     
    firebase_realtime (_r) = 1;     
    firebase_debug (_dbg) = 1;     
    firebase_event_origin (_o) = app; 
} 
2017-05-29 12:54:41.640 brincando[22620] <Debug> [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name, parameters: 
post_score, 
{       
    firebase_screen_id (_si) = -396951154609863799;         
    score = 42;         
    firebase_screen_class (_sc) = UnityDefaultViewController;       
    firebase_realtime (_r) = 1;         
    firebase_debug (_dbg) = 1;      
    firebase_event_origin (_o) = app;   
} 

2017-05-29 12:54:41.646107 brincando[22620:5072192] [Firebase/Analytics][I-ACS012018] Saving bundle. size (bytes): 415 
2017-05-29 12:54:41.648 brincando[22620] <Debug> [Firebase/Analytics][I-ACS012018] Saving bundle. size (bytes): 415 

2017-05-29 12:54:41.657411 brincando[22620:5072026] [Firebase/Analytics][I-ACS023116] Bundle added to the upload queue. BundleID, timestamp (ms): 13, 1496073280620 
2017-05-29 12:54:41.658 brincando[22620] <Debug> [Firebase/Analytics][I-ACS023116] Bundle added to the upload queue. BundleID, timestamp (ms): 13, 1496073280620 

2017-05-29 12:54:41.678965 brincando[22620:5072026] [Firebase/Analytics][I-ACS023038] Uploading events. Elapsed time since last successful upload (s): 21.54594898223877 
2017-05-29 12:54:41.679 brincando[22620] <Debug> [Firebase/Analytics][I-ACS023038] Uploading events. Elapsed time since last successful upload (s): 21.54594898223877 

2017-05-29 12:54:41.681181 brincando[22620:5072026] [Firebase/Analytics][I-ACS023039] Measurement data sent to network. Timestamp (ms), data: 1496073281675, <FIRAPBMeasurementBatch: 0x170016af0> 
2017-05-29 12:54:41.681 brincando[22620] <Debug> [Firebase/Analytics][I-ACS023039] Measurement data sent to network. Timestamp (ms), data: 1496073281675, <FIRAPBMeasurementBatch: 0x170016af0> 

2017-05-29 12:54:41.690525 brincando[22620:5072050] [Firebase/Analytics][I-ACS900000] Uploading data. Host: https://app-measurement.com/a 
2017-05-29 12:54:41.690 brincando[22620] <Debug> [Firebase/Analytics][I-ACS900000] Uploading data. Host: https://app-measurement.com/a 

2017-05-29 12:54:41.747085 brincando[22620:5072192] [Firebase/Analytics][I-ACS901006] Received SSL challenge for host. Host: https://app-measurement.com/a 
2017-05-29 12:54:41.747 brincando[22620] <Debug> [Firebase/Analytics][I-ACS901006] Received SSL challenge for host. Host: https://app-measurement.com/a 

2017-05-29 12:54:41.849945 brincando[22620:5072050] [Firebase/Analytics][I-ACS023044] Successful upload. Got network response. Code, size: 204, 0 
2017-05-29 12:54:41.850 brincando[22620] <Debug> [Firebase/Analytics][I-ACS023044] Successful upload. Got network response. Code, size: 204, 0 

2017-05-29 12:54:41.860015 brincando[22620:5072036] [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): -0.2379031181335449 
2017-05-29 12:54:41.860 brincando[22620] <Debug> [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): -0.2379031181335449 

2017-05-29 12:54:41.860374 brincando[22620:5072036] [Firebase/Analytics][I-ACS023028] Upload task scheduled to be executed in approx. (s): -0.2379031181335449 
2017-05-29 12:54:41.860 brincando[22620] <Debug> [Firebase/Analytics][I-ACS023028] Upload task scheduled to be executed in approx. (s): -0.2379031181335449 

2017-05-29 12:54:41.878356 brincando[22620:5072050] [Firebase/Analytics][I-ACS023024] No data to upload. Upload task will not be scheduled 
2017-05-29 12:54:41.878 brincando[22620] <Debug> [Firebase/Analytics][I-ACS023024] No data to upload. Upload task will not be scheduled 

2017-05-29 12:54:41.878814 brincando[22620:5072050] [Firebase/Analytics][I-ACS002003] Measurement timer canceled 
2017-05-29 12:54:41.880 brincando[22620] <Debug> [Firebase/Analytics][I-ACS002003] Measurement timer canceled

当您使用该标志打开调试模式时,控制台日志中是否有任何记录?您可以提供日志和SDK版本吗?您还可以使用DebugView在调试时实时验证流量,而不必等待2-4小时。 - adbitx
嗨adbitx,我尝试使用DebugView但是没有任何显示。 - brunok8
从日志中,我可以看到事件“post_score”已正确发送到服务器。奇怪的是你在DebugView中没有看到任何事件。我建议您直接联系Firebase支持,并提供您的应用信息。 - adbitx
1个回答

0

这可能是一个晚回答,但我仔细检查了其他解决方案,仍然存在类似的问题。

  • 确保所有事件参数都发送了一个值而不是空值。

  • 启用“-FIRAnalyticsDebugEnabled”标志

  • 启用“-FIRDebugEnabled”标志


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接