ios - FirebaseAutomaticScreenReportingEnabled 甚至禁用了我的电话

标签 ios swift firebase firebase-analytics

我在 Info.plist 中将 FirebaseAutomaticScreenReportingEnabled 设置为 NO,因为我想自己处理 setScreenName: screenClass: 调用。

但是 Firebase 不允许我调用它。

此消息记录在控制台:

 <Warning> [Firebase/Analytics][I-ACS031000] Ignoring call to setScreenName:screenClass:. Screen reporting is disabled.

我关注了This post :

If you disable automatic screen reporting, the Firebase Analytics reports will not automatically show the screen the user is on anymore. You can still call the setScreenName:screenClass: method to report the screen that the user is on.

最佳答案

From here

I got the answer from Firebase that On iOS, they support automatic + manual screen reporting or no screen reporting at all. Google Analytics for Firebase does NOT support the case of manual-only screen reporting. The plist flag FirebaseAutomaticScreenReportingEnabled has been renamed to FirebaseScreenReportingEnabled to reduce that confusion. Note that the value must be a Boolean and not a String. If it doesn't work as you expected, you can disable screen reporting completely by adding to Info.plist the flag FirebaseScreenReportingEnabled with a Boolean value of NO.

但是,对我来说 FirebaseAutomaticScreenReportingEnabled 工作。我没有将 info.plist 中的新名称更改为 FirebaseScreenReportingEnabled

关于ios - FirebaseAutomaticScreenReportingEnabled 甚至禁用了我的电话,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45472024/

相关文章:

ios - 在屏幕上的随机位置生成一个圆圈

ios - UILabel 下边框和右边框

xcode - Firebase Crashlytics : Missing dsym files

android - 如果已经设置,如何避免设置 firestore 文档字段

android - 允许多个应用通过库访问一个 Firebase 项目

ios - 使用 Storyboard在 iOS 6 中使用 uiscrollview 分页时遇到问题

ios - 为 xCode 问题安装 OpenCV

iPhone设备 token 在MYSQL数据库中存储多次

ios - 在 Swift 中水平滚动图像(如 Youtube 应用程序)

ios - 如何将 sizeForItemAt 放在后台线程上?