Comments (9)
Notice: this issue has been closed because it has been inactive for 224 days. You may reopen this issue if it has been closed in error.
from react-native-background-geolocation.
Hmm. Not sure. It may be possible. I will not try this my self as I consider this as unfair to the user.
from react-native-background-geolocation.
@mauron85 thanks for quick response.
I tried implement your module in the way I described. But it cannot stop service on app start...
Probably because every time app stopps we create new instance for BackgroundLocation, I'm really don't know how it must be on native side, but probably I make start()
for one instance, and then stop()
for another instance...
from react-native-background-geolocation.
Hi,
Even I have same requirement. After app is closed, I want to leave background location running and storing location local db. When app is launched again, then I want to stop it. I tried to stop service by calling stop(), but it does not stop service. It keeps running. Is there way to stop service after app is restarted.
from react-native-background-geolocation.
@mauron85 How is possible to stop location tracking when app is closed or in the background?
from react-native-background-geolocation.
@Luckygirlllll do you mean that tracking was started with option stopOnTerminate: false
, then app was closed/terminated and now you want to stop tracking programmatically?
from react-native-background-geolocation.
@mauron85 I have in the config right now stopOnTerminate: true, so it should stop location tracking when user closes the app, right? however, I'm not sure will it also stop location tracking when app is in a background? I want to have location tracking only when app is in foreground.
from react-native-background-geolocation.
Notice for other readers:
This very old thread and assumptions made here are not valid anymore. Now you can continue tracking, even when app was terminated and location updates are sent to server. So no need to downvote me @AngSin :)
from react-native-background-geolocation.
@Luckygirlllll I will answer your question in new thread you created #233
from react-native-background-geolocation.
Related Issues (20)
- hello there some problem with repository Jcenter this repasitory will be died in february, and if i remove this plugin gave this error HOT 4
- Background service does not work in SDK 31, app crashes HOT 10
- Foreground service notification appears with delay 10s in Android 12 (SDK 31) HOT 2
- invalid null provider error on start HOT 1
- FAILURE: Build completed with 2 failures. after installation of module HOT 3
- Build Failed while using this package. Sometimes it works fine but sometime the build fails HOT 4
- Context.startForegroundService() did not then call Service.startForeground() HOT 3
- The time interval is not working properly. I want to get a call in 10 minutes
- Could not find ::. Required by: project :app HOT 6
- Getting error running the project after installing the library HOT 5
- SDK 31 - Android 12 specify an explicit value for `android:exported` HOT 13
- No variants found for ':mauron85_react-native-background-geolocation'. Check build files to ensure at least one variant exists.
- Execution failed for task ':@mauron85_react-native-background-geolocation-common:compileDebugJavaWithJavac'. HOT 11
- '/Volumes/Untitled2/projects/agrigator/project/node_modules/@mauron85/react-native-background-geolocation/android/lib/build.gradle' line: 62
- Getting issue in fetching location when device screen is locked Android HOT 6
- Error build android: Could not resolve all files for configuration HOT 1
- :@hariks789_react-native-background-geolocation-common:compileReleaseJavaWithJavac'. > Compilation failed; see the compiler error output for details. HOT 7
- Whether support Android without Google Play Service installed
- Task :@mauron85_react-native-background-geolocation:generateDebugBuildConfig FAILED
- Not working in Android 12, API 31 and above HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-background-geolocation.