You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
private fun requestOneTimeLocation() {
val locationRequest = LocationRequest()
.setPriority(LocationRequest.PRIORITY_BALANCED_POWER_ACCURACY)
.setInterval(5000)
.setFastestInterval(5000)
val easyLocationRequest = EasyLocationRequestBuilder()
.setLocationRequest(locationRequest)
.setFallBackToLastLocationTime(3000)
.build()
requestSingleLocationFix(easyLocationRequest)
}
I use requestSingleLocationFix, the problem if the location in onLocationChanged of LocationBgService is null then there is no way to capture it and handle it. At least a callback would me much helpful.
The text was updated successfully, but these errors were encountered:
I can see the is a noLocationReceived method in EasyLocationListener but for some reason the developer is not active and it is not updated in maven. For now you can manually download and import to your project and it will work as expected.
I use requestSingleLocationFix, the problem if the location in onLocationChanged of LocationBgService is null then there is no way to capture it and handle it. At least a callback would me much helpful.
The text was updated successfully, but these errors were encountered: