我们尝试将firebase-analysis集成到我们的统一项目中,但是我们收到了关于数据丢失的错误。无法记录事件元数据,并且不知道如何解决此问题并想要求帮助。
尝试了来自https://github.com/firebase/quickstart-unity/tree/master/analytics/testapp的示例testapp,但仍然遇到了相同的错误。
以下是我们将firebase-analysis集成到testapp项目中的工具:
构建路径上的执行命令pod install
Analyzing dependencies
Downloading dependencies
Using Firebase (4.0.4)
Using FirebaseAnalytics (4.0.2)
Using FirebaseCore (4.0.4)
Using FirebaseInstanceID (2.0.0)
Using GoogleToolboxForMac (2.1.1)
Using nanopb (0.3.8)
Generating Pods project
Skipping User Project Integration
Sending stats
Pod installation complete! There are 2 dependencies from the Podfile and 6 total pods installed.
从输出结果来看,我们看到了一个不错的开始:
2017-08-09 14:28:09.611 testapp[1086] <Notice> [Firebase/Analytics][I-ACS023007] Firebase Analytics v.40002000 started
2017-08-09 14:28:09.612 testapp[1086] <Debug> [Firebase/Analytics][I-ACS023009] Debug logging enabled
2017-08-09 14:28:09.667 testapp[1086] <Debug> [Firebase/Analytics][I-ACS023016] Firebase Analytics is ready to receive events
2017-08-09 14:28:09.884 testapp[1086] <Notice> [Firebase/Analytics][I-ACS003007] Successfully created Firebase Analytics App Delegate Proxy automatically. To disable the proxy, set the flag FirebaseAppDelegateProxyEnabled to NO in the Info.plist
然后当firebase启动logevent时发生了一些错误:
2017-08-09 14:28:09.889 testapp[1086] <Warning> [Firebase/Analytics][I-ACS012011] Received empty measurement bundle metadata for getting dictionary representation
2017-08-09 14:28:09.890 testapp[1086] <Error> [Firebase/Analytics][I-ACS023068] Data loss. Cannot record event metadata. Error: Error Domain=com.google.gmp.measurement.ErrorDomain Code=2 "Failed to insert/update unknown data type" UserInfo={NSLocalizedDescription=Failed to insert/update unknown data type}
2017-08-09 14:28:09.890 testapp[1086] <Error> [Firebase/Analytics][I-ACS034010] Transaction failed
这里的要点是full log。感谢任何帮助,谢谢。