I am getting an error in the onAddGeofencesResult(int statusCode, String[] geofenceRequestIds)
callback with statusCode = 1000
.
I have my GPS enabled and my WiFi. I also have Google Play Services and I am able to track my location and request updates. Why am I not able to add geofences? I am not able to add geofences even from the documentation sample app. I get the following Toast message:
"Add Geofences: Failure, error code 1000 GeofenceRequestIds=[1,2,1,2]"
From the documentation (statusCode 1000):
public static final int GEOFENCE_NOT_AVAILABLE
Geofence service is not available now. Typically this is because the user turned off location access in settings > location access.
Constant Value: 1000 (0x000003e8)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…