Hi, just recently switched lib ver 2.3.0 to 2.4.0 and only added new line .failOnSettingsApiSuspended(true) to GooglePlayServicesConfiguration
Now, when app has GPS permission and GPS is disabled, it shows twice system dialog to enable GPS when I start activity. Before lib update this dialog appeared only once.
If I remove .failOnSettingsApiSuspended(true) , the app will show this dialog 5-6 times in case I tap "NO THANKS".
I/LocationManager: We got permission!
I/DispatcherLocationProvider: GooglePlayServices is available on device.
Attempting to get location from Google Play Services providers...
I/GooglePlayServicesLocationProvider: Start request location updates.
I/GooglePlayServicesLocationProvider: Start request location updates.
I/GooglePlayServicesLocationProvider$1: LastKnowLocation is not available.
I/GooglePlayServicesLocationProvider: Ask for location update...
Asking for SettingsApi...
I/GooglePlayServicesLocationProvider$1: LastKnowLocation is not available.
I/GooglePlayServicesLocationProvider: Ask for location update...
Asking for SettingsApi...
I/GooglePlayServicesLocationProvider: We need settingsApi dialog to switch required settings on.
Displaying the dialog...
I/GooglePlayServicesLocationProvider: We need settingsApi dialog to switch required settings on.
Displaying the dialog...
I/GooglePlayServicesLocationProvider: User denied settingsApi dialog, GooglePlayServices SettingsApi failing...
Canceling GooglePlayServiceLocationProvider...
I/GooglePlayServicesLocationProvider: Stop location updates...
Hi, just recently switched lib ver 2.3.0 to 2.4.0 and only added new line .failOnSettingsApiSuspended(true) to GooglePlayServicesConfiguration
Now, when app has GPS permission and GPS is disabled, it shows twice system dialog to enable GPS when I start activity. Before lib update this dialog appeared only once.
If I remove .failOnSettingsApiSuspended(true) , the app will show this dialog 5-6 times in case I tap "NO THANKS".
Configuration
Logs
I/LocationManager: We got permission! I/DispatcherLocationProvider: GooglePlayServices is available on device. Attempting to get location from Google Play Services providers... I/GooglePlayServicesLocationProvider: Start request location updates. I/GooglePlayServicesLocationProvider: Start request location updates. I/GooglePlayServicesLocationProvider$1: LastKnowLocation is not available. I/GooglePlayServicesLocationProvider: Ask for location update... Asking for SettingsApi... I/GooglePlayServicesLocationProvider$1: LastKnowLocation is not available. I/GooglePlayServicesLocationProvider: Ask for location update... Asking for SettingsApi... I/GooglePlayServicesLocationProvider: We need settingsApi dialog to switch required settings on. Displaying the dialog... I/GooglePlayServicesLocationProvider: We need settingsApi dialog to switch required settings on. Displaying the dialog... I/GooglePlayServicesLocationProvider: User denied settingsApi dialog, GooglePlayServices SettingsApi failing... Canceling GooglePlayServiceLocationProvider... I/GooglePlayServicesLocationProvider: Stop location updates...