Comments (5)
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.
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.
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.
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.
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)
- State change HOT 12
- Basic Doubts HOT 6
- Expo integration HOT 6
- Post Payload Optimization HOT 2
- Permissions in Background Tracking HOT 5
- Start Tracking on Closed Application HOT 8
- App Hanging -[TSLocationManager queue:type:] HOT 17
- Permissions
- StopTimeout not Working HOT 13
- Background Location not detecting on few devices like Oneplus , Apple Iphone 15 pro HOT 3
- Background Location not detecting on few devices like Oneplus , Apple Iphone 15 pro HOT 1
- Background Location Stop Detecting Very Late After Stopped HOT 1
- Background Location Stop Detecting Very Late After Stopped HOT 4
- java.lang.IncompatibleClassChangeError upon update from Expo SDK 49 to 51 HOT 1
- The operation couldn’t be completed. Background procssing task was not registered in AppDelegate didFinishLaunchingWithOptions. See iOS Setup Guide. HOT 1
- Realtime Database Firebase HOT 10
- Strange background location indicator - can't turn off HOT 4
- onEnabled and onGeofence not triggering on production but does work on development HOT 2
- Schedule is not working as expected in IOS HOT 11
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.