areLocationServicesEnabled

API 28+ uses LocationManager.isLocationEnabled; older releases fall back to Settings.Secure.LOCATION_MODE.

Returns whether the system-level Location Services master switch is on (Settings → Privacy & Security → Location Services on iOS, or Settings → Location on Android). When false, no app on the device can receive location data, regardless of per-app authorization, and geofencing reports com.advantahealth.api.geofencing.model.AFGeofencingStatus.LOCATION_SERVICES_DISABLED.

Internal: consumer code should call com.advantahealth.api.facilities.Facilities.areLocationServicesEnabled instead.

Returns whether the system-level Location Services master switch is on (Settings → Privacy & Security → Location Services on iOS, or Settings → Location on Android). When false, no app on the device can receive location data, regardless of per-app authorization, and geofencing reports com.advantahealth.api.geofencing.model.AFGeofencingStatus.LOCATION_SERVICES_DISABLED.

Internal: consumer code should call com.advantahealth.api.facilities.Facilities.areLocationServicesEnabled instead.