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

It doesn't work when device is upgraded to Google Services version 18.3.81 #276

Open iorfmer opened 5 years ago

iorfmer commented 5 years ago

Hi,

After upgrading Google Services to version 18.3.81 in the device, it doesn't work. Location is no updated anymore. here is my implementation:


SmartLocation.with(context.getApplicationContext())
                .location()
                .continuous()
                .config(builder.build())
                .start(new OnLocationUpdatedListener() {
                    @Override
                    public void onLocationUpdated(Location location) {
                        latestLocation = location;
                        if (!firstLocation) {
                            firstLocation = true;
                            EventBus.getDefault().post(new LocationMessage(location));
                        }
                    }
                });

Thanks.