TL;DR :
Android requestLocationUpdates()
has locationRequest.interval = 10000
which does not happen, is something wrong?
In Details: Successfully implemented Android period location and it works fine, using this reference https://developer.android.com/training/location/receive-location-updates
Working Code piece:
val fusedLocationClient: FusedLocationProviderClient = LocationServices.getFusedLocationProviderClient(
someActivity
)
val locationRequest = LocationRequest.create()
locationRequest.priority = LocationRequest.PRIORITY_HIGH_ACCURACY
locationRequest.interval = 10000 //This interval does not work
fusedLocationClient.requestLocationUpdates(locationRequest,
somelocationCallback,
Looper.getMainLooper())
After running the code the period updates are coming in random intervals and does not follow any pattern even though locationRequest.interval = 10000
. Is something is wrong?