问题
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/>
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 :/
回答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