Disabling firebase automatic screen reporting

风格不统一 提交于 2019-12-28 13:43:12

问题


Is there a way to disable Firebase analytics automatic screen reporting?

I have a few UIViewCOntroller's that i don't want to be reported.

So i want to manage the screen reporting my self.

Setting FirebaseAutomaticScreenReportingEnabled to NO didn't work

Thanks


回答1:


For 2018, you Info.plist will have entries like this:

<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. Not the strange plist added by Google.

  2. In this answer I have shown the exact, new, syntax needed (late 2018).

  3. Best to edit your plist as "source" and just paste in the above. It really won't work if you try to use the convenient "value entry" interface in Xcode.

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

2019...

Unfortunately, the details of this operation seem to be changing from time to time, so, it's uncertain if this precise procedure still works in all cases and all variations. Good luck :/




回答2:


You should be able to disable the Automatic Screen reporting by adding the plist flag FirebaseScreenReportingEnabled to Info.plist and set its value to NO (Boolean). Note that the value must be a Boolean and not a String.

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. We support automatic + manual screen reporting or no screen reporting at all.




回答3:


Make Sure that you changed the Type of the Key to "Boolean" (Not a String)

Info.plist




回答4:


In info.plist file.

Add

FirebaseScreenReportingEnabled

and make sure its value is Boolean

and make it to

NO

.




回答5:


your flag FirebaseScreenReportingEnabled in plist should be of type Boolean




回答6:


Swift 4

Firebase Error Console

make sure this two line is Boolean

FirebaseAppDelegateProxyEnabled Boolean No

FirebaseScreenReportingEnabled Boolean No



来源:https://stackoverflow.com/questions/44746794/disabling-firebase-automatic-screen-reporting

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!