We mirgrated from GCM to FCM without any problems. The notification service is running very well. However, we have to disable the app measurement part of the Firebase Analytics service for legal reasons.
We used this guide to disable the analytics part https://firebase.google.com/support/guides/disable-analytics
So we put this flag to the manifest file:
<meta-data android:name="firebase_analytics_collection_enabled" android:value=false />
and we also disabled the collection programmatically:
FirebaseAnalytics.getInstance(this).setAnalyticsCollectionEnabled(false);
Unfortunately, data is still collected and we can see new events in the Firebase Analytics Console. Is there any possibility to turn off the analytics services completely?
Thanks for your help.
Edit: I also have the deactivation meta-data in the application tag:
<meta-data android:name="firebase_analytics_collection_deactivated" android:value=true />
If you need to deactivate Analytics collection permanently in a version of your app, set FIREBASE_ANALYTICS_COLLECTION_DEACTIVATED to YES (Boolean) in your app's Info.
You can enable/disable collection of performance monitoring data from within your application code with: FirebasePerformance. getInstance(). setPerformanceCollectionEnabled(false);
If you're creating a new Firebase project, enable Google Analytics during the project creation workflow. If you're using an existing Firebase project that doesn't have Google Analytics enabled, go to the Integrations tab of your settings > Project settings to enable it.
Analytics surfaces data about user behavior in your iOS and Android apps, enabling you to make better decisions about your product and marketing optimization. View crash data, notification effectiveness, deep-link performance, in-app purchase data, and more.
I tried putting that line in my manifest, inside the application tag, as the first line under the application tag :
<application
android:icon="@mipmap/ic_launcher"
android:name="your.package.name">
<meta-data android:name="firebase_analytics_collection_enabled" android:value="false" />
When doing so, during the init, Firebase display in the logs:
I/FA: Collection disabled with firebase_analytics_collection_enabled=0
And it seems not to report anything to firebase afterwards.
Just received feedback from the Firebase support team.
The code for manifest file won't compile if you don't add a double quote in the android:value attribute, good job if you've already added that.
Temporarily disabling the analytics collection should work, could you please try to enable the verbose debug option and check the logs?
On the other hand, we are aware that there's an issue with disabling the analytics collection permanently, there's already a bug filed for this and being prioritized by our engineers appropriately. Please keep updated with our release notes for further notice regarding this issue.
We apologise for any inconvenience that this may have caused you, and we appreciate your understanding as we continue to improve our services, moving forward.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With