Giter Club home page Giter Club logo

Comments (6)

mauron85 avatar mauron85 commented on June 25, 2024

Yes option startForeground: false, but don't recommend to use it, as it will make plugin more vulnerable to OS kill.

from react-native-background-geolocation.

edencakir avatar edencakir commented on June 25, 2024

Set debug false. #29

from react-native-background-geolocation.

Shhzdmrz avatar Shhzdmrz commented on June 25, 2024

@mauron85 is this comment still valid? If yes then why not to add it in the doc?

from react-native-background-geolocation.

mauron85 avatar mauron85 commented on June 25, 2024

@Shhzdmrz my comment is valid. From the docs: startForeground: false "if false location service will not be started in foreground and no notification will be shown."

from react-native-background-geolocation.

Shhzdmrz avatar Shhzdmrz commented on June 25, 2024

@mauron85 I am confused now startForeground: false, is it mean service will totally not started or just it will not show the notification in foreground?
The screen having location service with config startForeground as true it never remove the screen even I kill the app and open it again the same screen will open and you are recommending not to use it, as it will make plugin more vulnerable to OS kill. I am not a native developer please briefly explain it.

from react-native-background-geolocation.

dengue8830 avatar dengue8830 commented on June 25, 2024

it seems that it starts in background without a notification (in this simplest mode, the service will be killed by the system in order to claim their memory space -android politics- ). startForeground: true flag just creates the notification and binds the service to it in order to prevent the service be killed by the system (that could be a definition of "service in foreground")

https://github.com/mauron85/background-geolocation-android/blob/19a9972b46eee4e176c6de3e523ce70e2b8d5fae/src/main/java/com/marianhello/bgloc/service/LocationServiceImpl.java#L358

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.