Skip to content
Engineering24 November 20265 min read

Location data you can defend: GPS in field apps done properly

Field apps need location to prove work happened. Collect it only while people are working, explain it before the permission prompt, and design for bad signal and patchy networks.

NThe Nexverse team

Location is one of the most useful things a field app can capture, and one of the easiest to get wrong. Done well, it proves that a security officer was on site, that a patrol checkpoint was visited, or that a delivery was handed over at the right door. Done badly, it drains batteries, alarms the people being tracked, fails app store review and produces evidence that falls apart the first time anyone questions it.

We build location into workforce and delivery apps, including ProRota for shift work and NexRider for delivery riders. These are the rules we work to.

Only collect while someone is working

The first rule is the simplest. Track people only while they are on shift or on a job, never otherwise. For a rider, that means from accepting a delivery until it is completed, not every moment the app is installed. For a security officer, it means clock-in, clock-out and the patrol points in between.

This matters legally, because location is personal data and the law expects you to collect only what you need. In the UK, the Information Commissioner's guidance on monitoring workers sets out the same expectation. It also matters for trust. People accept being tracked while they are working. They will not accept it on their day off, and they are right not to.

Make the rule visible. Show when tracking is on, stop it as soon as the job ends, and make sure the code enforces that state rather than relying on someone remembering to switch it off.

Explain before you ask

Both major app stores require you to explain why you want location, and Google Play requires a prominent in-app disclosure before you request background location. The operating system's own prompt is short and generic. If it appears without context, many people tap "Don't allow", and on recent versions of both platforms it is hard to get a second chance.

So show your own screen first. Say what you collect, when, why, and who sees it, in plain words. Then trigger the system prompt. Ask for the minimum level of access that does the job, and only ask for background access if the app genuinely needs it, such as a delivery in progress while the phone is in a pocket. Write the purpose strings carefully; reviewers read them.

If you would be uncomfortable explaining what the app collects to the person carrying the phone, you are collecting too much.

Geofences, with accuracy in mind

A geofence turns raw coordinates into a useful answer: was this person on site? But GPS is not exact. Accuracy varies with the device, the building, tall surroundings and the weather, and every reading comes with an accuracy radius that is worth keeping.

  • Store the accuracy of every reading, not just the coordinates.
  • Size geofences for real sites. A warehouse yard needs a different boundary from a city-centre doorway.
  • Treat "outside the fence with a 200-metre accuracy" differently from "outside the fence with 10-metre accuracy".
  • Flag doubtful readings for a manager to review rather than rejecting a clock-in outright. A guard should not be stopped from starting a shift because the signal was poor in a basement car park.

Assume the network will drop

Field work happens in basements, rural sites and stairwells. An app that needs a connection to record a clock-in will lose evidence exactly when it matters. Record events on the device first, then send them when the network returns.

  • Queue events locally with the device time they happened.
  • Give each event a unique key so a retried upload is never recorded twice.
  • Record the server time when it arrives as well, so a large gap is visible rather than hidden.
  • Show the user that something is waiting to send, and that it has been sent.

Evidence that holds up

Location on its own is rarely the whole story. The strongest records combine several signals captured at the same moment: the time on the device and on the server, the coordinates and their accuracy, a photo where the task calls for one, a scanned checkpoint code, and the identity of the signed-in user.

Be honest about tampering. Some devices allow mock locations, and both platforms give apps a way to detect them. Our approach is to flag suspicious records rather than silently block them. A flagged record with context is something a manager can investigate. A silent rejection just moves the problem out of sight.

Finally, keep edits visible. If a manager corrects a clock-out time, keep the original, the new value, who changed it and why. Evidence that can be quietly rewritten is not evidence.

Look after the battery

Continuous high-accuracy GPS is expensive. Match the sampling to the job: frequent updates while a rider is moving, occasional ones while a guard is static, high accuracy only at moments that need proof, such as clock-in or a checkpoint. On Android, long-running tracking needs a foreground service with a visible notification, which also reminds the user that tracking is on.

Collect less, explain more, design for bad signal and keep an honest record. Location data built on those rules is useful to the business, fair to the people carrying the phone, and defensible when someone asks how you know.

All insights
Start a conversation

No pitch deck. A conversation about the problem in front of you, and an honest view on what to do first. We usually reply the same working day.