Comments (6)
Hi Chris, we purchased the License, I await your responses so we can move forward. Thanks!
from react-native-background-geolocation.
- Implementing any event-listener is optional. Just like wiring up speakers to your stereo system is optional.
- Because I noticed that sometimes the plugin starts right after ready().
When you call .start()
, the plugin is enabled forever until you call .stop()
(see State.enabled
). The plugin persists its state in permanent storage. Calling .ready(config)
. restores the last known State.enabled
.
3 - getCurrentPosition returns the current position if I am in a Moving state and the last known position when I am in a stationary state? Any settings to return the most accurate position possible?
Observe your logs in $ adb logcat
for warnings (se Wiki "Debugging"). Android does not always allow your app to turn on location-services when the app is in the background with the plugin in the stationary state.
- How do I know if users have granted the necessary permissions for the plugin to fetch the location
See API docs .onProviderChange
.
from react-native-background-geolocation.
Chris,
1 - So if I enable preventSupend for iOS and don't implement hearbeat, iOS will continue to respond to the onLocation event normally when the application is closed?
3 - The objective is to use getCurrentPosition only in the Foreground. In this case, is the position real regardless of whether the state is moving or stationary?
Thanks!
from react-native-background-geolocation.
So if I enable preventSupend for iOS and don't implement hearbeat, iOS will continue to respond to the onLocation event normally when the application is closed?
99% of use-cases do NOT require preventSuspend
. You probably don't need preventSuspend
. I don't think you understand what it is. It's not some magic feature. preventSuspend
does NOT work when the app is terminated. I suggest you forget you ever heard of preventSuspend
.
See the API docs Config.stopOnTerminate
. iOS is fully capable of continuing to track location after app terminate (once the device moves at least 200 meters). preventSuspend
is NOT required for this. There is no way to overcome the "200 meter requirement".
The objective is to use getCurrentPosition only in the Foreground. In this case, is the position real regardless of whether the state is moving or stationary?
There is no issue with .getCurrentPosition
in the foreground. Are you reading the API docs?
from react-native-background-geolocation.
Ok Chris Thanks!
from react-native-background-geolocation.
I already told you to forget about preventSuspend
from react-native-background-geolocation.
Related Issues (20)
- State change HOT 12
- Question about preventSuspend HOT 5
- 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.