1

hello Im trying to stop location updates and I have used this code:-

LocationServices.FusedLocationApi.requestLocationUpdates(mGoogleApiClient, mLocationRequest, this)

But later I've noticed they stop using "FusedLocationApi" because its kinda deprecated. So guys, how can i stop location updates?

abokor hassan
  • 356
  • 6
  • 17

1 Answers1

1

In newer Google place Services FusedLocationApi is deprecated. And what i understand from your question that you want remove location, so in your case i think this the way to do it:

mFusedLocationClient.removeLocationUpdates(mLocationCallback);
Lafoune
  • 436
  • 2
  • 12
  • 28