Giter Club home page Giter Club logo

Comments (5)

christocracy avatar christocracy commented on July 21, 2024 1

You don’t need any of that.

preventSuspend doesn’t work after terminate. 99% of use-cases don’t need preventSuspend. You probably don’t need it.

the minimum distance to travel for tracking to engage (while in background / terminated) is 200 meters.

This is all easily experimented with in the iOS Simulator with location simulated with Freeway Drive and debug: true enabled.

from react-native-background-geolocation.

felipemelendez avatar felipemelendez commented on July 21, 2024

This is all easily experimented with in the iOS Simulator with location simulated with Freeway Drive and debug: true enabled.

Ever since I installed this API, I have not been able to use the iOS Simulator, I get this error when I try to run it: ERROR Invariant Violation: Your JavaScript code tried to access a native module that doesn't exist.

So I've been testing on a development build.

from react-native-background-geolocation.

christocracy avatar christocracy commented on July 21, 2024

I suggest you Google that and figure out how to fix it.

You’re wasting your time not being able to quickly experiment, answering questions in 30s that take 20 min of walking outside to test.

from react-native-background-geolocation.

felipemelendez avatar felipemelendez commented on July 21, 2024

yep, I had been testing by taking my dog for a walk around the block, after this exchange I decided to hop in the car and it turns out that my block has a radius < 200 meters. As soon as I exited the 200 meter radius the debugger came to life.

I wish we could make that radius smaller somehow...

from react-native-background-geolocation.

felipemelendez avatar felipemelendez commented on July 21, 2024

Adding this for posterity.

I am using Expo and my problem with the simulator was solved by creating a development build and installing the build in the simulator.

Here are the respective docs:
Creating a dev build: https://docs.expo.dev/develop/development-builds/create-a-build/

Installing dev build in the simulator: https://docs.expo.dev/build-reference/simulators/#installing-build-on-the-simulator

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.