question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support background location

See original GitHub issue

Hi,

Currently the Location.watchPositionAsync is not triggered when the app is closed (at least it’s not specified in the doc)

It could be nice to support background location. Not anything fancy but at least the ability to run a callback that sends that location to a backend server while the app is in background.

There are some RN and Cordova plugins providing this feature where some inspiration can be taken from:

https://github.com/mauron85/react-native-background-geolocation https://github.com/pmwisdom/cordova-background-geolocation-services https://github.com/transistorsoft/react-native-background-geolocation

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:18 (11 by maintainers)

github_iconTop GitHub Comments

5reactions
brentvatnecommented, Jul 5, 2017

Canny again is a good fit for this. This is something we are working on but we need to build some general infrastructure for background code execution first – we are working on that part now.

4reactions
timhuffcommented, Apr 3, 2018

I gotcha. I guess my question is: is this something you feel a newcomer could tackle? I know the Objective-C/Java side of this. I would think the only thing I would need to learn is how to create the expo API. It’s not something I’d be tackling for another month or two but I have an app that does background tracking (amongst other things) and I’d like to migrate it to expo. Seems if I move the tracking piece into expo, I’d just have to set up an API and then we’d be all set to use expo for the rest.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Access location in the background
Use the following checklist to identify potential location access logic in the background: In your app's manifest, check for the ...
Read more >
Requesting access to location in the background
You can now submit your app for feedback on location in the background access by completing the Location permissions declaration form in Play...
Read more >
How to Reliably Fetch Location in Background on Newest ...
You have to fill declaration form inside Play Console, it can be found at App Content > Sensitive app permission > Manage >...
Read more >
Handling location updates in the background
If you need background location updates for an iOS, iPadOS, or watchOS app, update your project to support those updates. On macOS, you...
Read more >
background_location | Flutter Package
A Flutter plugin to get location updates in the background for both Android and iOS. Uses CoreLocation for iOS and FusedLocationProvider for Android....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found