Required Reading
Plugin Version
5.1.1
Mobile operating-system(s)
Device Manufacturer(s) and Model(s)
Samsung A36
Device operating-systems(s)
Android 16
React Native / Expo version
0.85.3
What happened?
The distance is not being calculated accurately while the user is moving. There is a noticeable difference between the actual walking distance and the distance returned by the SDK.
Plugin Code and/or Config
const DISTANCE_FILTER_METERS = 3;
const DESIRED_ODOMETER_ACCURACY_METERS = 20;
geolocation: {
desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_HIGH,
distanceFilter: DISTANCE_FILTER_METERS,
disableElasticity: true,
desiredOdometerAccuracy: DESIRED_ODOMETER_ACCURACY_METERS,
locationUpdateInterval: 3000,
fastestLocationUpdateInterval: 1000,
activityType: BackgroundGeolocation.ACTIVITY_TYPE_FITNESS,
pausesLocationUpdatesAutomatically: false,
locationAuthorizationRequest: 'WhenInUse',
showsBackgroundLocationIndicator: true,
},
Relevant log output
Required Reading
Plugin Version
5.1.1
Mobile operating-system(s)
Device Manufacturer(s) and Model(s)
Samsung A36
Device operating-systems(s)
Android 16
React Native / Expo version
0.85.3
What happened?
The distance is not being calculated accurately while the user is moving. There is a noticeable difference between the actual walking distance and the distance returned by the SDK.
Plugin Code and/or Config
Relevant log output