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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-31 09:16:28  来源:igfitidea点击:

Disabling firebase automatic screen reporting

iosswiftfirebasefirebase-analytics

提问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 FirebaseAutomaticScreenReportingEnabledto NOdidn't work

设置FirebaseAutomaticScreenReportingEnabledNO无效

Thanks

谢谢

回答by Fattie

For 2018, your Info.plistwill 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/>
  1. Critical: Surprisingly this is in >>> YOUR<<< Info.plist. NOTthe OTHERstrange plist added by Google!
  1. 关键:令人惊讶的是,这是在 >>>您的<<< Info.plist 中。不是谷歌添加的其他奇怪的 plist!

There are two plists!!!

有两个plist!!!

  1. In this answer I have shown the exact, new, syntax needed- for late 2018.

  2. 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.

  1. 在这个答案中,我展示了2018 年末所需准确、新的语法

  2. 将您的 plist 编辑为“源”。粘贴在上面。如果您尝试使用 Xcode 中方便的“值输入”界面,它将无法工作。

You will at last, finally, see this ...

你终于,终于,看到了这个......

enter image description here

在此处输入图片说明

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)

确保您将键的类型更改为“布尔”(不是字符串)

Info.plist

信息表

回答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 布尔值 否