OOmnistu

Blog / Mobile App Development

Mobile App Development

Geofencing in mobile apps: how it works on Android, and what to expect

Understand Android geofence permissions, radius choices, delayed alerts and re-registration requirements before depending on arrival events.

OOmnistu
Reviewed 2026-11-16 · 3 min read

Delivery, logistics, field-service and retail apps often need to react when a device arrives at or leaves a place. Android's geofencing guide (https://developer.android.com/develop/sensors-and-location/location/geofencing) describes how this works on Android, and it is candid about delays and failure cases.

What a geofence is

Per the guide, a geofence is a circular area defined by a latitude, longitude and radius. You can ask Location Services for entrance and exit events, or for a "dwell" event after the device has stayed inside for a set time. A geofence can have an expiry. The guide says an app can have up to 100 active geofences per device user.

Permissions

The app must request ACCESS_FINE_LOCATION, and ACCESS_BACKGROUND_LOCATION if it targets Android 10 (API level 29) or higher. Background location is a permission users can refuse, so the feature needs a fallback and a clear in-app explanation.

Design advice from Android

When alerts do not arrive, or arrive late

The guide's troubleshooting list includes: Wi-Fi turned off, no reliable network connectivity inside the geofence (the service depends on the network location provider), and late alerts. It says the service does not continuously query for location, usually latency is less than 2 minutes, about 2 to 3 minutes on average when background location limits apply, and may reach up to 6 minutes if the device has been stationary for a long time.

What survives restarts

Per the guide, the system restores geofences after Google Play services upgrades or restarts, and after a location process crash. The app must re-register geofences after a device reboot, app reinstall, clearing app data or Google Play services data, or a GEOFENCE_NOT_AVAILABLE alert.

What this means when scoping a product

Limits

One platform, one documentation page. We make no claims about fleet tracking products or their accuracy.

By Omnistu.

Sources

Previous
Cross-site scripting (XSS): how app teams prevent it