Geofence - problem in triggering 'GEOFENCE_NOT_AVAILABLE'

▼魔方 西西 提交于 2019-12-06 05:05:32

GEOFENCE_NOT_AVAILABLE is an expected error code, to let you know that the location adapter is off and location (and geofence) will not be tracked anymore.

Once available again, your geofences will be active and you will get the desired callback.

Few Reasons why the triggers aren't happening :

  1. Check if your expiry timestamp that you set in your geofence request, is still valid.
  2. Did you device get restarted ? If yes, you need to re-register fences. (Refer documentation : Re-register geofences only when required documentation)

  3. Is your location, set to High Accuracy mode in Device settings ?

  4. When you re-register your fences, you should un-register them first and then only re-register.

  5. Open Google maps and check if its showing the right location.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!