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

Android - Stale LastLocation causes immediate reroute with FusedLocationProvider #412

Open
Archdoog opened this issue Jan 7, 2025 · 0 comments
Assignees
Labels
android bug Something isn't working

Comments

@Archdoog
Copy link
Collaborator

Archdoog commented Jan 7, 2025

When the location provider is run for a while, then stopped, but not deinitialized it can emit a stale initial location to ferrostar core, causing the map to jump to a location the user was at historically. See:

    if (lastLocation == null) {
      fusedLocationProviderClient.lastLocation.addOnSuccessListener { location ->
        if (location != null) {
          androidListener.onLocationChanged(location)
        }
      }
    }
@Archdoog Archdoog added bug Something isn't working android labels Jan 7, 2025
@Archdoog Archdoog self-assigned this Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant