I implemented Google Awareness API on my application. All the features of Awareness api except getPlace are working. But nearby places features doesn't work. I get the status code 7508. There is no information about that specific code and it's also not handled in the official android documentation.
private void getPlace() {
if (ActivityCompat.checkSelfPermission(getContext(), android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {
return;
}
//noinspection MissingPermission
Awareness.SnapshotApi.getPlaces(mGoogleApiClient)
.setResultCallback(new ResultCallback<PlacesResult>() {
@Override
public void onResult(@NonNull final PlacesResult placesResult) {
if (!placesResult.getStatus().isSuccess()) {
Toast.makeText(getContext(), "Could not get places.", Toast.LENGTH_LONG).show();
return;
}
List<PlaceLikelihood> placeLikelihoodList = placesResult.getPlaceLikelihoods();
//do smth..
}
});
}