Home / Insights / Mobile App Development
Mobile App Development
Offline Maps and Location Features in Native Apps: Accuracy, Battery and Privacy
Field service, logistics, outdoor and mobility apps all need maps that keep working without a signal and location that is accurate enough without flattening the battery. This guide sets out the architecture decisions behind offline maps and location in native iOS and Android apps, and the privacy rules that shape them.
TopicsMobile App Development
Key takeaways
- Decide the accuracy each feature actually needs first; most features work with balanced or approximate location, and only a few justify continuous GPS.
- Offline maps are a licensing question before they are a technical one: the OpenStreetMap Foundation’s public tile server forbids offline use, so you need a provider whose terms allow it or your own tiles.
- Battery cost is driven by three levers, accuracy, frequency and latency; long intervals, batched delivery and geofences beat constant high-accuracy updates.
- Ask for ‘when in use’ location by default; background or ‘always’ access needs a clear user benefit and faces extra platform scrutiny.
- Treat location history as sensitive personal data: minimise collection, store it on the device where possible, and set retention before launch.
On this page
- Start with what each location feature actually needs
- Offline maps: sourcing, licensing and storage
- Accuracy: choosing the right level for each feature
- Battery: the three levers and a sensible budget
- Permissions, background access and platform rules
- Privacy by design for location data
- Testing and a delivery checklist
- Frequently asked questions
- Sources and methodology
Location looks like a solved problem: drop in a map SDK, request permission, read coordinates. In production the hard questions arrive quickly. The technician is in a basement with no signal and the map is blank. The delivery driver’s phone is dead by mid-afternoon. A user asks why your app knew where they were at 3 a.m. Each of these traces back to an architecture decision made, or not made, early in the project.
This article is for CTOs, product owners and mobile leads planning native iOS and Android apps with maps and location at their core: field service and inspections, logistics and delivery, mobility and hire, outdoor and tourism apps. It covers how to source and license offline maps, how to choose accuracy levels, how to budget battery, and how to handle permissions and privacy. It reflects how we approach these features in native mobile development with Swift, SwiftUI, Kotlin and Jetpack Compose, including work alongside a Singapore team on an e-scooter hire platform where location was central to the product.
Start with what each location feature actually needs
Teams often treat “location” as a single capability. It is better to list each feature and decide, for each one, four things: accuracy, frequency, whether it runs in the background, and whether it must work offline.
| Feature (illustrative) | Accuracy needed | Update frequency | Background? | Offline? |
|---|---|---|---|---|
| Show nearby branches or stores | Approximate is often enough | Once, on request | No | Optional |
| Turn-by-turn navigation | Precise | Every few seconds | Yes, during the trip | Ideally yes |
| Proof of visit for field service | Precise at check-in | On check-in and check-out | No | Yes, sync later |
| Fleet or courier tracking | Balanced | Minutes, batched | Yes | Queue and upload |
| Arrival alerts at a site | Geofence radius | Event-driven | Yes | Yes, on device |
This exercise usually shows that only one or two features need continuous precise location. Everything else can use cheaper, more private options. It also clarifies which permission level each feature requires, which matters for the user experience and for platform review.
Action: fill in this table for your app before choosing SDKs. Challenge every “precise” and every “background” entry.
Offline maps: sourcing, licensing and storage
An offline map needs map data stored on the device: raster tiles (pre-rendered images) or vector tiles (geometry styled on the device), plus optional search data for addresses and places. Where that data comes from determines what you are allowed to do with it.
The licensing trap
Many teams prototype with OpenStreetMap’s public tiles because they are free and easy to load. The OpenStreetMap Foundation’s tile usage policy is explicit that offline use is not permitted on its standard tile server, and that prefetching tiles you are not viewing, building tile archives and “download for offline” features all fall under that ban. The policy also requires visible attribution, a distinct User-Agent, honouring cache headers and accepting that heavy use can be blocked without notice. It points to OSM-derived hosted providers, commercial providers or running your own tiles, and suggests vector tiles for offline use where the provider’s terms allow packaging them.
Options compared
| Approach | Pros | Cons | Fits when |
|---|---|---|---|
| Commercial map SDK with offline regions | Polished styles, search and routing; offline packs managed by the SDK | Usage-based pricing; offline limits and terms vary by provider; lock-in | Consumer apps needing quality maps quickly |
| Hosted OSM-derived vector tiles | Lower cost; flexible styling; OSM data licence is well understood | You manage styling, attribution and offline packaging within provider terms | Field and B2B apps with defined regions |
| Self-hosted vector tiles | Full control of data, regions and update cadence; no per-request fees | Build and maintain the tile pipeline and hosting; responsible for attribution | Large fleets, government or strict data residency |
| Platform maps (system map frameworks) | Familiar look; no extra SDK; good accessibility | Limited or no developer-controlled offline downloads | Apps where offline maps are not essential |
Storage and updates
- Size regions deliberately: download the area and zoom levels a user needs, such as a service territory, not a whole country. Let users see and delete downloaded regions.
- Download on Wi-Fi by default, with resume support for interrupted downloads.
- Plan updates: roads and addresses change. Decide how often packs refresh and how the app handles a stale pack.
- Separate base map from business data: job locations, assets and geofences should sync through your own offline data layer, not be baked into map tiles.
Our article on offline-first mobile apps for field teams covers the sync and conflict side of offline design in depth.
Accuracy: choosing the right level for each feature
Accuracy is a product choice with privacy and battery consequences. Android’s documentation on location permissions gives useful reference points: approximate location (the coarse permission) is accurate to within about 3 square kilometres, while precise location is usually within about 50 metres and sometimes within a few metres. If a user grants only approximate location, the app receives approximate location regardless of what it declared, so the app must still work in that state. iOS similarly lets users share an approximate location instead of a precise one, so the same design principle applies on both platforms.
Practical guidance
- Default to approximate for features like regional content, store finders and weather. Ask for precise only when a feature needs it, and explain why at that moment.
- Expect noise: urban canyons, indoor locations and basements degrade GPS. Use the accuracy value returned with each fix and do not treat a single reading as truth.
- Filter and smooth for tracking: discard fixes with poor reported accuracy, and avoid drawing zig-zag routes from jitter.
- Verify, do not over-trust: for proof-of-visit features, combine location with other evidence such as a scanned code or photo when the stakes are high. Location can be spoofed on compromised devices.
Offline positioning
GPS itself does not need a data connection, but network-assisted positioning and some fused providers do better with one. When offline, expect slower first fixes and lower accuracy indoors. Test the actual devices your users carry in the places they work, not only in the office car park.
Battery: the three levers and a sensible budget
Google’s guidance on optimising location for battery frames battery use around three levers: accuracy, frequency and latency. The same thinking applies on iOS.
Accuracy (priority)
Android’s fused location provider offers several priorities. High accuracy uses GPS, Wi-Fi, cell and sensors and drains the battery significantly. Balanced power accuracy very rarely uses GPS and typically relies on Wi-Fi and cell. Low power mostly uses cell towers for coarse, city-level positions. Passive receives locations other apps have already computed at no additional cost, though delivery is not guaranteed. Google recommends balanced or low power for most apps, reserving high accuracy for foreground uses such as mapping.
Frequency (interval)
Pass the largest interval you can, especially in the background. Intervals of a few seconds belong to foreground navigation, not background tracking. Google also notes that since Android 8.0, background location is throttled to a few updates an hour.
Latency (batching)
Allow the system to deliver several locations at once by setting a maximum update delay, typically several times the interval. For tracking that is reviewed later, batching saves power with little loss of value.
Geofences
For “arrived at site” features, geofences are far cheaper than polling. Google reports that background limits changed geofence responsiveness from tens of seconds to about two minutes, improving battery performance by up to ten times on some devices, and recommends a notification responsiveness of five minutes or more where acceptable.
| Pattern | Battery impact | Use for |
|---|---|---|
| Continuous high accuracy, short interval | High | Active navigation, only while the trip is running |
| Balanced accuracy, long interval, batched | Moderate to low | Fleet tracking, courier progress |
| Geofences with relaxed responsiveness | Low | Arrival and departure events |
| One-off request when user taps | Very low | Store finders, tagging a photo or form |
| Passive | Negligible | Opportunistic context, never critical features |
Action: set a battery budget, for example an illustrative target that a full shift of tracking should use no more than a defined share of battery on your reference device, and measure it on real hardware before release.
Permissions, background access and platform rules
Apple’s guide to requesting location authorisation describes two levels: When in Use, which Apple calls the preferred choice because it has better privacy and battery implications, and Always, which lets the system launch the app for some updates such as significant location changes, visits and region monitoring. Apple advises asking only when someone engages a feature that needs location, notes that the prompt appears once, and that a separate request for Always can be made only once after When in Use is granted.
On Android, background location requires declaring and requesting a separate permission on Android 10 and higher, and foreground services that use location must declare the location service type. Google Play restricts background location to apps that need it for core features. Android also shows users a reminder notification after the first background access.
A permission strategy that holds up
- Request When in Use (iOS) or foreground location (Android) when the user first starts a location feature.
- Start with approximate where the feature allows, and ask for precise only when needed.
- For background tracking during a defined task, such as a delivery round, prefer a foreground service or an active session that the user starts and stops, with a visible indicator.
- Request Always or background access only for features that genuinely need it, such as geofence alerts, and explain the benefit in context.
- Handle every state, including denied, approximate only and revoked, without breaking the app.
Privacy by design for location data
Location history reveals where people live, work, worship and seek treatment. Treat it as sensitive personal data, whatever your legal classification, and design accordingly.
- Collect less: record location only during active tasks, at the accuracy each feature needs. Stop tracking automatically when a shift or trip ends.
- Process on the device where possible: geofence evaluation, distance calculations and offline routing can run locally, sending only events (“arrived at site 42”) rather than raw traces.
- Coarsen before storing: round or aggregate coordinates for analytics; keep precise traces only where a business process needs them.
- Set retention: define how long raw traces are kept, delete automatically, and document it.
- Separate identity: for analytics, avoid linking location history to named users unless required.
- Be transparent: show when tracking is active, let users see their own history where appropriate, and explain use in clear purpose strings.
- Check third-party SDKs: Android’s documentation reminds developers to check whether SDKs require location permissions. On iOS, review what your SDKs collect and declare; our privacy manifest checklist covers the declarations Apple expects.
For worker tracking in particular, employment and data protection rules add obligations around necessity and transparency. Agree with your legal adviser what is tracked, when and why before you build. For server-side design of tracking pipelines and customer notifications, see our article on real-time shipment tracking architecture.
Testing and a delivery checklist
Test in the real world
- Test on the oldest and lowest-spec devices your users carry, on both platforms.
- Walk the real routes: basements, car parks, rural areas, dense city streets.
- Turn off data and Wi-Fi mid-task; confirm maps, positioning and queued events behave correctly, and that queued data syncs once a connection returns.
- Measure battery over a full shift with your production location settings.
- Run every permission state: precise, approximate, denied, revoked mid-session, background denied.
- Use simulated locations for repeatable regression tests, but never as a substitute for field tests.
Delivery checklist
- Feature table completed: accuracy, frequency, background and offline needs for each location feature.
- Map provider chosen with offline use confirmed in its terms; attribution displayed.
- Offline region size, download rules and update cadence defined.
- Location requests use the lowest accuracy and longest interval that meet each need; batching and geofences used where possible.
- Battery budget set and measured on reference devices.
- Permission flow requests When in Use first; background access justified feature by feature.
- Location data minimised, processed on device where possible, retention defined.
- Third-party SDK location use reviewed and declared.
- Field testing completed in representative environments.
Frequently asked questions
Can we use OpenStreetMap tiles for offline maps in our app?
Not from the OpenStreetMap Foundation’s public tile server: its usage policy forbids offline use and bulk downloading. You can use OSM data through a hosted provider whose terms allow offline packaging, or generate and host your own tiles, with proper attribution.
Do we need GPS to work offline?
GPS receivers work without a data connection, but network-assisted positioning helps with faster and more accurate fixes. Offline, expect slower first fixes and weaker indoor accuracy. Test on your users’ devices in their real working locations.
How do we track couriers without draining their phones?
Use balanced accuracy rather than high accuracy, long intervals, batched delivery and geofences for arrival events, and stop tracking when the shift or route ends. Measure battery use over a full shift on real devices before release.
When is ‘always’ or background location justified?
When a feature delivers clear value while the app is not in use, such as geofence alerts or tracking during a task the user started. Both Apple and Google treat background access as sensitive; request it later, explain why, and keep the app useful without it.
Is approximate location good enough for our app?
For regional content, store finders and similar features, often yes. Android describes approximate location as accurate to within about 3 square kilometres. Features like navigation or proof of visit need precise location, which you should request only when the user starts them.
Sources and methodology
Guidance reflects PoliteTech delivery experience. The external references below informed specific points in this article.
- Android Developers: Optimise location for battery — accessed 9 November 2026. Accuracy, frequency and latency levers; fused location priorities; background throttling since Android 8.0; geofence responsiveness and battery gains.
- Android Developers: Location permissions — accessed 9 November 2026. Foreground and background access, approximate (about 3 sq km) versus precise (about 50 m) accuracy, and background location requirements on Android 10+.
- Apple Developer: Requesting authorisation to use location services — accessed 9 November 2026. When in Use versus Always authorisation, one-time prompts, asking in context, and which services can relaunch an app.
- OpenStreetMap Foundation: Tile usage policy — accessed 9 November 2026. Offline use and bulk downloading prohibited on the standard tile server; attribution, User-Agent and caching rules; alternatives such as other providers or self-hosting.
Related reading
Continue your research
Building a native app where maps must work offline and batteries must last a full shift?
We design and build native iOS and Android location features, from offline map packaging to battery-aware tracking and privacy-first data handling.
