Skip to content Skip to sidebar Skip to footer

What Is Google Play Services Measurementbrokerservice And How To Stop It?

I have created a Service which listens to a Firebase location. This is a simple service with low memory usage. Unfortunately, I am seeing a Google play services service called Mea

Solution 1:

I checked that somehow still google AppMeasurement service was running on my device.

I have resorted to using the following approach:

The following stops data collection by firebase.

https://firebase.google.com/support/guides/disable-analytics tells us the following approach

<meta-data android:name="firebase_analytics_collection_deactivated" android:value="true" />

This alone still can't stop the appMeasurement from initializing.

The second step that has solved is adding the following to the app level gradle file:

configurations {
    all*.exclude group: 'com.google.firebase', module: 'firebase-core'
}

This basically removes all the code that firebase analytics uses.

In case it still doesn't work, make sure that the gradle does not include broad play service dependency

eg: compile 'com.google.android.gms:play-services-location:10.0.1'

instead of 'com.google.android.gms:play-services:10.0.1'

Worst case and i have not tested this as the above solved it for me is:

https://developers.google.com/analytics/devguides/collection/android/v4/advanced

Google should really stop putting unwanted things without the dev's permission IMHO. Hope this helps someone

Post a Comment for "What Is Google Play Services Measurementbrokerservice And How To Stop It?"