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

location does not update - Android 8.0 #258

Open
bruno-siqueira-simples opened this issue Nov 13, 2018 · 2 comments
Open

location does not update - Android 8.0 #258

bruno-siqueira-simples opened this issue Nov 13, 2018 · 2 comments

Comments

@bruno-siqueira-simples
Copy link

location does not update even using LocationParams.NAVIGATION. Does anyone know how to solve it?

@mona-baharlou
Copy link

I implement it in this way, and it works on android 8 but not on android 7 :(((

 private void startLocationListener() {

        Logger.d("startLocationListener:begin smartLocation");

        LocationParams.Builder builder = new LocationParams.Builder()
                .setAccuracy(trackingAccuracy)
                .setDistance(trackingDistance)
                .setInterval(interval);


        LocationGooglePlayServicesWithFallbackProvider provider =
                new LocationGooglePlayServicesWithFallbackProvider(this);


        SmartLocation smartLocation = new SmartLocation.Builder(this).logging(true).build();

        smartLocation.location(provider).continuous()
                .config(builder.build()).start(this);

        smartLocation.activity().start(this);
    }


@Override
    public void onLocationUpdated(Location location) {
              //do sth with location
               setLocationValues(location);
    }

@DillionApple
Copy link

DillionApple commented Mar 27, 2019

Same issue. I also tried the method in Android official documentation, but it still cannot get the location update.

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

3 participants