title: Android Geofence not triggers once location OFF and ON again
body: <p>I am using Android Geofencing API.After add geofence it works fine when location is ON.But If I OFF location and ON again,afterwards Geofencing not triggers when enter or exit.I have tested on my Moto G with Android 5.0.2 device. Is it Geofence will expire If location is off?</p>
  
  <p>I have seen on Android document as,</p>
  
  <blockquote>
    <p>In case network location provider is disabled by the user, the
    geofence service will stop updating, all registered geofences will be
    removed and an intent is generated by the provided pending intent. In
    this case, the GeofencingEvent created from this intent represents an
    error event, where hasError() returns true and getErrorCode() returns
    GEOFENCE_NOT_AVAILABLE.</p>
  </blockquote>
  
  <p><a href="https://developer.android.com/reference/com/google/android/gms/location/GeofencingApi.html" rel="nofollow">Document link</a></p>