Closed draganjovanovic1 closed 3 years ago
If the driver wants to initiate tracking, you can offer a UI button (eg: [Start]
) where you execute BackgroundGeolocation.changePace(true)
to manually place the plugin into the moving state.
My scenario is to start tracking, with the config above, as soon as driver logs in the app and the idea is to track driver as long as he is logged in the app even if it is in the background. Tracking is being stopped on logout. There should be no manual action by the driver.
My issue is that the library sometimes takes too long to react on a movement, especially on iOS which is described and understood. The library has the idea to be energy efficient and it is perfectly valid but not for my use case so I wanted to check if there are any additional flags which can make it more aggressive in terms of tracking regardless of the battery life.
Thanks and happy holidays!
Config.stopTimeout
to a very high number.Config.pausesLocationUpdatesAutomatically
, Config.disableStopDetection
Your Environment
Environment irrelevant, just a question.
I searched through the properties and docs and found that this set of properties might affect:
Expected Behavior
## Actual BehavioriOS stationary geofence could lead to issues as it takes a while to detect motion sometimes leading in several hundred of meters without driver's location. This is by the docs and reflects what is written there but I am curious if I can make the tracking lib be more aggressive.
Context
I am using the lib as a part of the driver app so the most precise and frequent location is required regardless of the battery optimization.
Debug logs
Logs
``` PASTE_YOUR_LOGS_HERE ```