Skip to content

[Bug]: Distance Mismatch Between Actual Distance and SDK Distance #2647

Description

@Matt-Sprintcrowd

Required Reading

  • Confirmed

Plugin Version

5.1.1

Mobile operating-system(s)

  • iOS
  • Android

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions