Reputation: 1678
I want to use GCM (Google Cloud Messaging), however it seems now I have to use it within Firebase. The Firebase terms of service say if I use Firebase Analytics I am bound by an additional set of terms of service.
I do not want any information about my app or its usage captured or shared with Google.
My question is if I implement GCM in my mobile app will it automatically be using Firebase Analytics?
If not, how do I avoid using Firebase Analytics, or how do I turn it off completely. The google documentation is not clear.
Thanks in advance
Upvotes: 1
Views: 647
Reputation: 2710
You can start by putting this within the application tag in your AndroidManifest:
<meta-data android:name="firebase_analytics_collection_deactivated" android:value="true" />
Also see Disable Analytics Collection
In addition, you can apparently now disable crash reporting.
However, that may not be everything. In order to really be sure that your app is not transmitting any information to Google, you should watch the app's network traffic using a tool such as Charles Proxy.
But it's hard to be sure that no usage or other significant data is going to google servers. I have seen calls to the following google servers happening and it's not clear what data is being transmitted:
Upvotes: 0
Reputation: 2225
Not sure if you can disable it completely but you can try with setting setAnalyticsCollectionEnabled to false. Something like this in every activity:
FirebaseAnalytics.getInstance(this).setAnalyticsCollectionEnabled(false)
Upvotes: 1