Disabling firebase automatic screen reporting

ilan picture ilan · Jun 25, 2017 · Viewed 29.7k times · Source

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

Answer

Fattie picture Fattie · Aug 7, 2018

For 2018, your 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 OTHER strange plist added by Google!

There are two plists!!!

  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.

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

enter image description here

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!