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/

相关文章:

swift - 为什么 'nil' 与 Swift 3 中的 'UnsafePointer<CGAffineTransform>' 不兼容?

Firebase 更新回调以检测错误和成功

ios - 任何人都知道如何使表索引成为我的核心数据名称属性的前 4 个字符?

ios - Firebase 在 Swift 中检索数据

ios - NSUserDefaults - 如何读取保存的数组

ios - 如何设置 NSManaged 变量?

ios - Swift 减少/展平字典<String,Dictionary> 到字典

firebase - Flutter/Firebase getter 'length'在null上被调用

javascript - 在 Cloud Functions for Firebase 中删除节点时未调用 onDelete

ios - 将 UITableView 单元格添加到数组中