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
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/>
Critical: Surprisingly this is in >>> YOUR <<< Info.plist. Not the strange plist added by Google.
In this answer I have shown the exact, new, syntax needed (late 2018).
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)
来源:https://stackoverflow.com/questions/44746794/disabling-firebase-automatic-screen-reporting