Everyday apps use geofencing by storing a boundary around a place and watching the phone’s estimated position against it. When the phone enters, leaves or lingers inside that boundary, the app runs a task, such as sending a reminder or an offer. The phone’s own location sensors do the measuring.
How geofencing works in everyday apps
An everyday app keeps a short list of places and checks whether the phone is near any of them. A geofence is a boundary drawn around a real place and saved as map coordinates. Nothing has to be installed at that place.
The app reacts only to a crossing. Each boundary can be watched separately for a phone entering, leaving or staying. The result can be a reminder for the owner or a message from an advertiser.
Two groups of apps rely on the idea most. Utility apps use it to prompt their owner when the phone reaches a chosen spot. Advertising and shopping apps use it to reach phones close to a store, a rival or another point of interest.
How a phone’s position becomes an app alert
The phone estimates its position, the app compares that estimate with each stored boundary, and a crossing starts the programmed task. Android describes each boundary as a circle: a center point given by latitude and longitude, plus a radius in meters.
The position estimate comes from several sources. Outdoors, a phone leans on GPS satellites, while indoors and in crowded downtowns it tends to rely on nearby Wi-Fi networks, with cell towers filling gaps. Most current phones mix all three.
Wi-Fi positioning looks up nearby access points in a database of believed locations. If a router has been moved, the phone may be placed in the wrong spot.
Precision limits how small a fence can be. Google advises keeping an Android fence at least 100 to 150 meters wide, because Wi-Fi fixes are typically off by 20 to 50 m. Without Wi-Fi to help, as on a country road, the error can stretch from several hundred meters to several kilometers.
Delivery adds a delay. Alerts on Android typically arrive within about 2 minutes. A phone that has sat motionless for a long while can wait about 6 minutes.
Apps also choose how to watch a fence. The foreground method switches GPS on only while the app is in use and draws more battery. The background method runs without GPS, so it cannot send real-time notifications.
Industry shorthand labels the pair active and passive geofences, while reference sources say foreground and background.
The parts an app combines: triggers, shapes and limits
An app geofence is assembled from a trigger, a shape and a cap on how many fences run at once. The trigger decides which movement counts. The table lists the three triggers.
| Trigger | What the app waits for | Detail |
|---|---|---|
| Enter | The phone crosses inward | Fires as soon as the crossing is detected |
| Exit | The phone crosses outward | Marks the end of a visit |
| Dwell | The phone stays inside for a set time | Android calls the wait a loitering delay |
Google advises the dwell trigger instead of enter, as a way to reduce nuisance alerts. A phone that merely passes a store never completes the wait, so no message fires.
Shape is the second part. On Android, a fence is a circle. Researchers at NASA treated fences as many-sided shapes with corners, including zones to stay in and zones to stay out of.
The third part is a cap. Android limits an app to 100 active fences for each user of a device. An app that covers many places must switch fences on and off.
What app-based geofencing means for a local business
For a local business, app geofencing mostly means advertisers can aim messages at phones near a chosen place and then estimate who visited. It does not give precise control over who walks in.
Advertisers have several ways to mark the target area, including ZIP code, street address, raw coordinates or IP, as Wikipedia’s geofence entry lays out. Typical targets are a competitor’s location or a patch of a few square miles that surrounds a car dealership.
The scale is wider than a doorway. The FTC’s own illustration is an ad sent to a person within 200 meters of a pharmacy.
Visit measurement is layered over the targeting. Some vendors log devices that were shown an ad and afterwards turned up inside a showroom. The industry term for this matching is walk-in attribution.
Nothing published by an official body establishes how accurate this matching is, so a vendor’s visit totals are estimates.
A complaint from the FTC accuses InMarket of reading app location data. The complaint says the data showed when a consumer got to a place, the length of the stay and the moment of departure. Those three readings line up with the enter, dwell and exit triggers.
Police requests reach location data by a different route, and geofence warrants follow their own rules.
Common misunderstandings about app geofences
Four common beliefs about app geofences are wrong, and each has a plain correction.
- Fences are always circles. Android uses circles, but research systems use polygons.
- Geofencing is pinpoint-accurate. Wi-Fi fixes are typically off by 20 to 50 m, and a phone with no Wi-Fi to lean on can be off by kilometers.
- Alerts fire instantly. They usually arrive within about 2 minutes and can take longer.
- Any business can geofence anywhere. Washington law (RCW 19.373.080) forbids a geofence around in-person health care providers. New York GBL 394-g bars a geofence at someone else’s health care facility from being used to deliver ads, build profiles or infer health status.
Rules differ by place and by industry. A business with a specific plan should check the current text of the law that applies to it.
Frequently asked questions
Does an app watching a geofence drain the battery?
It depends on the monitoring method. A fence watched with GPS while the app is open in the foreground uses more battery. A background fence runs without GPS, which saves power but cannot support real-time notifications.
How close must a phone be to set off an alert?
The phone must cross the fence boundary, and the boundary has a floor on its size. Google’s guidance is to keep the radius at no less than 100 to 150 meters on Android, since location estimates carry error. Alerts usually arrive within about 2 minutes after the crossing.
Can an app watch unlimited places at once?
No. Android limits an app to 100 live geofences per device user. For iPhone, Apple’s developer documentation is the authority on the limit.
How this page fits the series
Part two of four, this page stays on the app side of the topic. The definition and the full range of uses are set out in the parent guide on what geofencing is. Part three moves from apps to court-ordered searches of location records, where the same boundary idea serves a very different purpose.
Sources
- Washington State Legislature, RCW 19.373.080
- Android Developers, Create and monitor geofences
- Wikipedia, Geofence
- Wikipedia, Mobile phone tracking
- Wikipedia, Wi-Fi positioning system
- NASA Technical Reports Server, geofence modeling paper
- Federal Trade Commission, complaint against InMarket Media LLC
- New York State Senate, General Business Law section 394-g
