-
Notifications
You must be signed in to change notification settings - Fork 70
LocationServices.SettingsApi seems to be broken #140
Comments
Thank you for your detailed report.
|
I tested the issue with an Android 6 emulator actually. Anyhow, the output of 1. is:
|
Very cool! Thank you for your efforts, @sarahlensing and @ecgreb |
Description
The location settings api seems to be broken or at least does not work as documented nor as documented for the Google Play Api (since it should mirror the behavior).
Following points:
checkLocationSettings
is called, the status code returned isStatus.SETTINGS_CHANGE_UNAVAILABLE
instead ofStatus.SUCCESS
status.startResolutionForResult
, it seems to be unachievable to return to this activity viaonActivityResult
with result codeActivity.RESULT_OK
(see reproduction below)status.startResolutionForResult
leads the user directly to the settings, without asking first. Since LOST should mirror Google Play Apis, the expectation is that this call works the same.Steps to Reproduce
Have the below code in your activity. Then,...
Activity.RESULT_CANCELED
and "Oh no, user did not turn location on!" is logged. It seems to be unachievable to get aActivity.RESULT_OK
Status.SUCCESS
but isStatus.SETTINGS_CHANGE_UNAVAILABLE
Lost & Android Version
2.1.1 on Android 6
The text was updated successfully, but these errors were encountered: