Git Product home page Git Product logo

Comments (9)

mauron85 avatar mauron85 commented on July 16, 2024 2

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.

mauron85 avatar mauron85 commented on July 16, 2024

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.

igor-bv avatar igor-bv commented on July 16, 2024

@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.

satishmane avatar satishmane commented on July 16, 2024

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.

Luckygirlllll avatar Luckygirlllll commented on July 16, 2024

@mauron85 How is possible to stop location tracking when app is closed or in the background?

from react-native-background-geolocation.

mauron85 avatar mauron85 commented on July 16, 2024

@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.

Luckygirlllll avatar Luckygirlllll commented on July 16, 2024

@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.

mauron85 avatar mauron85 commented on July 16, 2024

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.

mauron85 avatar mauron85 commented on July 16, 2024

@Luckygirlllll I will answer your question in new thread you created #233

from react-native-background-geolocation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.