Skip to content

Commit 44bf03b

Browse files
committed
remove any notion of locationTimeout
1 parent d64e8b2 commit 44bf03b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

DISTANCE_FILTER_PROVIDER.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This provider has features allowing you to control the behaviour of background-tracking, striking a balance between accuracy and battery-usage. In stationary-mode, the plugin attempts to decrease its power usage and accuracy by setting up a circular stationary-region of configurable `stationaryRadius`. iOS has a nice system [Significant Changes API](https://developer.apple.com/library/ios/documentation/CoreLocation/Reference/CLLocationManager_Class/CLLocationManager/CLLocationManager.html#//apple_ref/occ/instm/CLLocationManager/startMonitoringSignificantLocationChanges), which allows the os to suspend your app until a cell-tower change is detected (typically 2-3 city-block change) Android uses [LocationManager#addProximityAlert](http://developer.android.com/reference/android/location/LocationManager.html).
44

5-
When the plugin detects your user has moved beyond his stationary-region, it engages the native platform's geolocation system for aggressive monitoring according to the configured `desiredAccuracy`, `distanceFilter` and `locationTimeout`. The plugin attempts to intelligently scale `distanceFilter` based upon the current reported speed. Each time `distanceFilter` is determined to have changed by 5m/s, it recalculates it by squaring the speed rounded-to-nearest-five and adding `distanceFilter` (I arbitrarily came up with that formula. Better ideas?).
5+
When the plugin detects your user has moved beyond his stationary-region, it engages the native platform's geolocation system for aggressive monitoring according to the configured `desiredAccuracy`, `distanceFilter` and `interval`. The plugin attempts to intelligently scale `distanceFilter` based upon the current reported speed. Each time `distanceFilter` is determined to have changed by 5m/s, it recalculates it by squaring the speed rounded-to-nearest-five and adding `distanceFilter` (I arbitrarily came up with that formula. Better ideas?).
66

77
`(round(speed, 5))^2 + distanceFilter`
88

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ class BgTracking extends Component {
8080
desiredAccuracy: 10,
8181
stationaryRadius: 50,
8282
distanceFilter: 50,
83-
locationTimeout: 30,
8483
notificationTitle: 'Background tracking',
8584
notificationText: 'enabled',
8685
debug: true,

0 commit comments

Comments
 (0)