mrmans0n / smart-location-lib

Android library project that lets you manage the location updates to be as painless as possible
1.65k stars 352 forks source link

in some places onLocationUpdated never triggers #265

Open mona-baharlou opened 5 years ago

mona-baharlou commented 5 years ago

My code is :

   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);

In most places it works correctly, but in some places onLocationUpdated never trigger. Is there anyway to check why it's not triggered?