Error adding geofences in Android (status code 1000)

后端 未结 11 1146
孤城傲影
孤城傲影 2020-12-01 17:52

I am getting an error in the onAddGeofencesResult(int statusCode, String[] geofenceRequestIds) callback with statusCode = 1000.

I have my GP

11条回答
  •  醉话见心
    2020-12-01 18:17

    You get GEOFENCE_NOT_AVAILABLE (code '1000') when user disagrees to "Use Google' location services" in Settings->Location->Mode: enter image description here

    To fix it:

    • go to Settings->Location->Mode
      enter image description here
    • set "Device only (Use GPS to determine your location)"
    • set any other option to get the popup (e.g. "High accuracy (Use GPS, Wi-Fi and mobile networks to determine location")
    • dialog ""Use Google' location services" is shown
    • choose "Agree"

提交回复
热议问题