Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Odometer remains 0 on one phone (Redmi 9T) out of 500 users #1431

Closed
peterbodo opened this issue Nov 23, 2023 · 3 comments
Closed

Odometer remains 0 on one phone (Redmi 9T) out of 500 users #1431

peterbodo opened this issue Nov 23, 2023 · 3 comments

Comments

@peterbodo
Copy link

Your Environment

  • Plugin version: "react-native-background-geolocation": "^4.9.4",
  • Platform: Android
  • Device manufacturer / model: Redmi 9T
  • Plugin config provided to #ready:
{
    locationAuthorizationRequest: "Always",
    backgroundPermissionRationale: {
        title: "Engedélyezed, hogy a {applicationName} hozzáférjen a helyadatokhoz a háttérben?",
        message:
            "Azért, hogy a háttérben is rögzíthessük az utazásaidat, kérlek engedélyezd a helyadatokat {backgroundPermissionOptionLabel} formában",
        positiveAction: "Váltás {backgroundPermissionOptionLabel}-re",
        negativeAction: "Mégsem",
    },
    desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_HIGH,
    distanceFilter: 2,
    desiredOdometerAccuracy: 100,
    allowIdenticalLocations: true,
    stopTimeout: 60,
    debug: false,
    logLevel: BackgroundGeolocation.LOG_LEVEL_OFF,
    stopOnTerminate: false,
    startOnBoot: true,
    url: `${BASE_URL}telemetry`,
    batchSync: true,
    maxBatchSize: 200,
    autoSync: false,
    //autoSyncThreshold: 200,
    extras: { session: sessionId, telemetryEvent: "COLLECT" },
    locationTemplate,
    headers: {
        "x-carbontracker-authtoken": accessToken,
        "x-carbontracker-userid": userId,
    },
}

Expected Behavior

Odometer should update. It does for more than 500 users, but remains 0 for just this one user

Actual Behavior

Odometer remains 0 for this user

image

Steps to Reproduce

Well, that's the problem. Are there any reason for odometer not updating? While having absolutely correct location with the desired accuracy?
Thanks Chris, in advance.

Context

Well, this is a production app with more than 500 users in the first test month and I am trying to debug a user's complain.

Debug logs

Logs
Sorry I have no access.

Thanks a million!

@christocracy
Copy link
Member

It's impossible to explain one particular device without detailed logs from the plug-in. See wiki "Debugging" and learn to fetch logs from the plug-in.

"^4.9.4",

See the CHANGELOG and update to latest version

@peterbodo
Copy link
Author

And I just realised I posted for the cordova version instead of react :/

Thanks, I will look into it

@peterbodo
Copy link
Author

Well, I will check the update possibilities.

Debugging is still not feasible as I meantioned it is a production appand I do not have access to the user's device. Any suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants