Support background location
See original GitHub issueHi,
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:
- Created 6 years ago
- Comments:18 (11 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
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.