Disabling firebase automatic screen reporting

别等时光非礼了梦想. 提交于 2019-11-29 05:33:10

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 :/

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.

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

Info.plist

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