Disabling firebase automatic screen reporting - ios
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, 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/>
Critical: Surprisingly this is in >>> YOUR <<< Info.plist. NOT the OTHER strange plist added by Google!
There are two plists!!!
In this answer I have shown the exact, new, syntax needed - for late 2018.
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 ...
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!
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.
For 2020
On iOS, set FirebaseAutomaticScreenReportingEnabled to NO in your info.plist. On Android, set google_analytics_automatic_screen_reporting_enabled to false in your manifest.
In info.plist file.
Add
FirebaseScreenReportingEnabled
and make sure its value is Boolean
and make it to
NO
.
Make Sure that you changed the Type of the Key to "Boolean" (Not a String)
Info.plist
In case anybody is unfamiliar with editing Info.plist, false value is zero 0
your flag FirebaseScreenReportingEnabled in plist should be of type Boolean
Swift 4
Firebase Error Console
make sure this two line is Boolean
FirebaseAppDelegateProxyEnabled Boolean No
FirebaseScreenReportingEnabled Boolean No
For 2022
This worked for me, based on this official blog post (from 2020):
iOS
Inside XCode - in Info.plist set FirebaseScreenReportingEnabled to type Boolean and select the value "NO", which will change to 0 - this is fine.
The Info.plist will then read like this if you open it directly, outside of XCode:
<key>FirebaseAutomaticScreenReportingEnabled</key>
<false/>
Android
Inside AndroidManifest.xml add:
<manifest>
<application>
<meta-data
android:name="google_analytics_automatic_screen_reporting_enabled"
android:value="false" />
<!-- ... -->
</application>
</manifest>
source
also docs here
Don't forget to rebuild.
Related
Disable automatic firebase analytics of screen tracks [duplicate]
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, 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/> Critical: Surprisingly this is in >>> YOUR <<< Info.plist. NOT the OTHER strange plist added by Google! There are two plists!!! In this answer I have shown the exact, new, syntax needed - for late 2018. 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 ... 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!
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.
For 2020 On iOS, set FirebaseAutomaticScreenReportingEnabled to NO in your info.plist. On Android, set google_analytics_automatic_screen_reporting_enabled to false in your manifest.
In info.plist file. Add FirebaseScreenReportingEnabled and make sure its value is Boolean and make it to NO .
Make Sure that you changed the Type of the Key to "Boolean" (Not a String) Info.plist
In case anybody is unfamiliar with editing Info.plist, false value is zero 0
your flag FirebaseScreenReportingEnabled in plist should be of type Boolean
Swift 4 Firebase Error Console make sure this two line is Boolean FirebaseAppDelegateProxyEnabled Boolean No FirebaseScreenReportingEnabled Boolean No
For 2022 This worked for me, based on this official blog post (from 2020): iOS Inside XCode - in Info.plist set FirebaseScreenReportingEnabled to type Boolean and select the value "NO", which will change to 0 - this is fine. The Info.plist will then read like this if you open it directly, outside of XCode: <key>FirebaseAutomaticScreenReportingEnabled</key> <false/> Android Inside AndroidManifest.xml add: <manifest> <application> <meta-data android:name="google_analytics_automatic_screen_reporting_enabled" android:value="false" /> <!-- ... --> </application> </manifest> source also docs here Don't forget to rebuild.
Xcode 10.0 OpenCV Cpp project does not read NSCameraDescription from info.plist
I have already added a info.plist file, but it just wont let me use the webcam.I am in a fix as I have already tried editing the info.plist as a source file. Correct me if I am missing something. Also linked the info.plist to the plist for the app in general settings. Am I missing something? Link the the error is given in the blue highlighted section
You need to set Privacy - Camera Usage Description in Info.plist, not NSCameraDescription.
Adobe Animate Missing Export Compliance ITSAppUsesNonExemptEncryption False
Anyone know how to remove the annoying Apple Missing Export Compliance? I have tried adding ITSAppUsesNonExemptEncryption to the app's XML config file (name-app.xml). <key>ITSAppUsesNonExemptEncryption</key><false/> Has no effect.
Found a way to get it working, I moved the ITSAppUsesNonExemptEncryption Key to the bottom of the Key list. Inside the InfoAdditions and seems to be working now: <iPhone> <InfoAdditions><![CDATA[ <!-- <key>....</key> <key>....</key> --> <key>ITSAppUsesNonExemptEncryption</key><false/> ]]></InfoAdditions> </iPhone>
WatchKit NSAppTransportSecurity error
I get this error when I run my project: I have read a lot of questions but these don't helped me to solved my issue. In fact, I have set the value of App Transport Security Settings to YES (like in my screenshot) in both of my iOS app and watchOS extension. Any idea? Thanks!
It seems to be disallowed for the "watchkitapp"-target itself. You are still able to add the ATS-Key to the Info.plist of the "watchkitapp-extension"-Target. You should be able to define a exception-domain like this:
Set iTunes File Sharing enabled in info.plist to YES only in DEBUG configuration
In Xcode, can I set the "Application supports iTunes file sharing" / UIFileSharingEnabledsetting to YES/NO based on my app's configuration (debug vs release)? I've seen discussions of using user defined build settings to set string values of string plist items (e.g. $(MY_DEFINED_SETTING), but can you do this with this boolean setting? This wouldn't be exactly the same thing, but as long as it gets removed automatically when building a release version of the app, that's fine. But if I try to enter anything beside YESor NOin the field, it defaults to NO. I know one can have two different versions of a file based on the configuration, but would be simpler not to have two copies of largely the same file. But if that's the best solution, then any tips on implementing that would be appreciated. Thanks
Although the default plist viewer in Xcode wouldn't let me enter a string into the key's value field for UIFileSharingEnabled because it was expecting a boolean, I did manage to get it to let me enter whatever value I wanted by viewing the plist as source code and entering it as follows: <key>UIFileSharingEnabled</key> <string>${FILE_SHARING_ENABLED}</string> As opposed to <true/> or <false/> as the plist editor defaults the second line to. (Where FILE_SHARING_ENABLED is the name of my user defined build setting with it set to YES for Debug and NO for Release) Note I also tried setting a user defined build setting where in the debug configuration it was equal to UIFileSharingEnabled, and some gibberish value in release. Then I tried using that as a key, but it didn't get replaced with the value, and was instead treated as a string. Double check by printing out the contents of the infoDictionary NSLog(#"%#",[[NSBundle mainBundle] infoDictionary]); And also by opening iTunes and checking to see if the file sharing works/doesn't work on the phone's Apps page at the bottom. (Remember to test in both debug and release configurations)