<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/not-all-who-wander-are-lost-ggrwmvo4p" -->

---
title: Not all who wander are lost | daily.dev
description: A practical guide to implementing background location tracking in an Expo app using expo-location and expo-task-manager. Covers installation, configuring...
canonical: https://daily.dev/posts/not-all-who-wander-are-lost-ggrwmvo4p
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Not all who wander are lost | daily.dev
og:description: A practical guide to implementing background location tracking in an Expo app using expo-location and expo-task-manager. Covers installation, configuring...
og:url: https://daily.dev/posts/not-all-who-wander-are-lost-ggrwmvo4p
og:image: https://api.daily.dev/og/posts/ggrWMVo4P.png
og:image:alt: Not all who wander are lost
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Not all who wander are lost

**[Software Mansion](https://daily.dev/sources/swmansion)** · 3 min read · 0 upvotes · 0 comments

## Summary

A practical guide to implementing background location tracking in an Expo app using expo-location and expo-task-manager. Covers installation, configuring permissions in app.json for both iOS and Android, requesting foreground and background location permissions, registering a background task with startLocationUpdatesAsync, and handling location data callbacks. Also demonstrates visualizing the recorded route using Mapbox, and notes a known issue with Huawei devices requiring battery optimization to be disabled for background updates to work.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://swmansion.com/blog/not-all-who-wander-are-lost-805811c433c5>

## Similar posts on daily.dev

- [How to build a resilient activity tracker with Expo — Expo blog](https://daily.dev/posts/how-to-build-a-resilient-activity-tracker-with-expo-expo-blog-tscdigjcl) · Expo Blog · 2 upvotes · 0 comments
- [The Real Permission Flow for Background Location in React Native \(Android \+ iOS\)](https://daily.dev/posts/the-real-permission-flow-for-background-location-in-react-native-android-ios--tupdu99ko) · Medium · 0 upvotes · 0 comments
- [The React Native Live Activities Handbook: How to Build iOS Live Activities and Android 16 Live Updates](https://daily.dev/posts/the-react-native-live-activities-handbook-how-to-build-ios-live-activities-and-android-16-live-upda-zpnvakxef) · freeCodeCamp · 1 upvotes · 0 comments
- [Android System Design: Designing Location-Based Apps](https://daily.dev/posts/android-system-design-designing-location-based-apps-uvwckrh7g) · Medium · 0 upvotes · 0 comments
- [Live Activities with Expo, End to End: Client and Backend — Expo blog](https://daily.dev/posts/live-activities-with-expo-end-to-end-client-and-backend-expo-blog-jwfjdu3w2) · Expo Blog · 0 upvotes · 0 comments

---

Tags: [#mobile](https://daily.dev/tags/mobile), [#react-native](https://daily.dev/tags/react-native)

[View this post on daily.dev](https://daily.dev/posts/not-all-who-wander-are-lost-ggrwmvo4p)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Not all who wander are lost","url":"https://daily.dev/posts/not-all-who-wander-are-lost-ggrwmvo4p","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/not-all-who-wander-are-lost-ggrwmvo4p"},"datePublished":"2026-08-02T07:15:24.621Z","dateModified":"2026-08-02T07:40:41.635Z","description":"A practical guide to implementing background location tracking in an Expo app using expo-location and expo-task-manager. Covers installation, configuring...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/263c8d703e0f40cbdb8be0b907d54236?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/263c8d703e0f40cbdb8be0b907d54236?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Software Mansion","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Software Mansion","logo":"https://media.daily.dev/image/upload/s--sOx0vaVZ--/f_auto,q_auto/v1785654908/logos/swmansion?_a=BAMAMicg0","url":"https://daily.dev/sources/swmansion"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/not-all-who-wander-are-lost-ggrwmvo4p","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"mobile,react-native","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Software Mansion","item":"https://daily.dev/sources/swmansion"},{"@type":"ListItem","position":3,"name":"Not all who wander are lost"}]}
```

