0

We are getting error when getting location in some VIVO phones.

DEVELOPER_ERROR (statusCode=10)

in the class LocationSettingsResult callback

below are the code.

  if (locationSettingsResult != null) {
            locationSettingsResult.setResultCallback(locationSettingsResult1 -> {
                final Status status = locationSettingsResult1.getStatus();

                switch (status.getStatusCode()) {
                    case LocationSettingsStatusCodes.SUCCESS:
                        showRemarksDialogIfRequired();
                        break;

                    case LocationSettingsStatusCodes.RESOLUTION_REQUIRED:
                        try {
                            if (status.hasResolution()) {
                                status.startResolutionForResult(parentActivity, 333);
                            }
                        } catch (IntentSender.SendIntentException e) {
                            // Ignore the error.
                            e.printStackTrace();
                        }

                        break;

                    case LocationSettingsStatusCodes.SETTINGS_CHANGE_UNAVAILABLE:
                        Toast.makeText(parentActivity, "Can not set GPS settings for location!!!", Toast.LENGTH_SHORT).show();
                        break;
                }
            });
        }
Parth Patel
  • 6,498
  • 3
  • 16
  • 29
  • Probably a key related issue . Double check your configurations. – ADM May 26 '18 at 04:37
  • I have double checked keys, it works perfectly on other devices excepts some VIVO phones. I can't find any issues on other phones. and for LocationRequest i don't think we require any keys. – Parth Patel May 26 '18 at 04:42
  • Please see this links:- https://stackoverflow.com/questions/37421518/statuscode-developer-error-in-google-login and https://stackoverflow.com/questions/37273145/error-statusstatuscode-developer-error-resolution-null – debo.stackoverflow May 26 '18 at 04:59

0 Answers0