Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

requestSingleLocationFix returns nothing if location is null #11

Open
saisoftdev opened this issue Jan 17, 2018 · 1 comment
Open

requestSingleLocationFix returns nothing if location is null #11

saisoftdev opened this issue Jan 17, 2018 · 1 comment

Comments

@saisoftdev
Copy link

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.

@saikiran91
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants