我使用Fabric框架以及Crashlytics和Twitter依赖项。是否可以只关闭在“答案”选项卡中生成的统计数据?仿真器有很多次会议,所以分析不精确。
发布于 2016-01-08 10:28:20
如果您想关闭答案,只需取消选中您的应用程序的复选框在Fabric (见附带屏幕截图)。
如果你想在发布你的应用程序时获得用户的答案,那么你可以在织物上有另一个应用程序,并且只在你的产品构建中使用这些键。
发布于 2018-05-05 19:33:01
我使用以下方法添加了一个适配器模块:
#if DEBUG
func logContentView(name: String, type: String, id: String? = nil) {
print("Content view \"\(name)\" of type \"\(type)\" with id \"\(id ?? "null")\"")
}
#else
import Crashlytics
func logContentView(name: String, type: String, id: String? = nil) {
Answers.logContentView(withName: name, contentType: type, contentId: id)
}
#endif
考虑到控制器,我以下列方式记录事件:
logContentView(name: "Main", type: "Screen")
因此,我的应用程序不会在调试生成中生成事件。
https://stackoverflow.com/questions/34674309
复制相似问题