ios 禁用 Firebase 自动屏幕报告
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/44746794/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Disabling firebase automatic screen reporting
提问by ilan
Is there a way to disable Firebase analytics automatic screen reporting?
有没有办法禁用 Firebase 分析自动屏幕报告?
I have a few UIViewCOntroller's that i don't want to be reported.
我有一些不想被报告的 UIViewCONtroller。
So i want to manage the screen reporting my self.
所以我想管理报告我自己的屏幕。
Setting FirebaseAutomaticScreenReportingEnabled
to NO
didn't work
设置FirebaseAutomaticScreenReportingEnabled
为NO
无效
Thanks
谢谢
回答by Fattie
For 2018, your Info.plist
will have entries like this:
对于 2018 年,您Info.plist
将有这样的条目:
<key>FIREBASE_ANALYTICS_COLLECTION_ENABLED</key>
<string>NO</string>
<key>FIREBASE_ANALYTICS_COLLECTION_DEACTIVATED</key>
<string>YES</string>
<key>FirebaseScreenReportingEnabled</key>
<false/>
- Critical: Surprisingly this is in >>> YOUR<<< Info.plist. NOTthe OTHERstrange plist added by Google!
- 关键:令人惊讶的是,这是在 >>>您的<<< Info.plist 中。不是谷歌添加的其他奇怪的 plist!
There are two plists!!!
有两个plist!!!
In this answer I have shown the exact, new, syntax needed- for late 2018.
Edit your plist as "source". Paste in the above.It will not work if you try to use the convenient "value entry" interface in Xcode.
在这个答案中,我展示了2018 年末所需的准确、新的语法。
将您的 plist 编辑为“源”。粘贴在上面。如果您尝试使用 Xcode 中方便的“值输入”界面,它将无法工作。
You will at last, finally, see this ...
你终于,终于,看到了这个......
2019...
2019...
Unfortunately, the details of this operation seem to be changing from time to time.
不幸的是,这项操作的细节似乎不时发生变化。
So it is uncertain if this precise procedure still works in all cases and in all variations. Good luck!
因此,不确定这种精确的程序是否仍然适用于所有情况和所有变化。祝你好运!
回答by AniV
You should be able to disable the Automatic Screen reporting by adding the plist flag FirebaseScreenReportingEnabledto Info.plist and set its value to NO (Boolean). Note that the value must be a Boolean and not a String.
您应该能够通过将 plist 标志FirebaseScreenReportingEnabled添加到 Info.plist 并将其值设置为 NO(布尔值)来禁用自动屏幕报告。请注意,该值必须是布尔值而不是字符串。
Google Analytics for Firebase does NOT support the case of manual-only screen reporting. The plist flag FirebaseAutomaticScreenReportingEnabledhas been renamed to FirebaseScreenReportingEnabledto reduce that confusion. We support automatic + manual screen reporting or no screen reporting at all.
Google Analytics for Firebase 不支持仅手动屏幕报告的情况。plist 标志FirebaseAutomaticScreenReportingEnabled已重命名为FirebaseScreenReportingEnabled以减少这种混淆。我们支持自动+手动屏幕报告或根本没有屏幕报告。
回答by Tushar Katyal
In info.plistfile.
在info.plist文件中。
Add
添加
FirebaseScreenReportingEnabled
FirebaseScreenReportingEnabled
and make sure its value is Boolean
并确保它的价值是 Boolean
and make it to
并使它成为
NO
不
.
.
回答by Salih Demirta?
Make Sure that you changed the Type of the Key to "Boolean" (Not a String)
确保您将键的类型更改为“布尔”(不是字符串)
回答by AsHwin ShaKya
your flag FirebaseScreenReportingEnabled in plist should be of type Boolean
你在 plist 中的标志 FirebaseScreenReportingEnabled 应该是布尔类型
回答by islam XDeveloper
Swift 4
斯威夫特 4
Firebase Error Console
Firebase 错误控制台
make sure this two line is Boolean
确保这两行是布尔值
FirebaseAppDelegateProxyEnabled Boolean No
FirebaseAppDelegateProxyEnabled 布尔值 否
FirebaseScreenReportingEnabled Boolean No
FirebaseScreenReportingEnabled 布尔值 否