Skip to content

Getting the location tends to time out #5

@boldtrn

Description

@boldtrn

Using older versions capacitor geolocation plugin, getting the current location was done using the lastKnownLocation. We see a lot of issues in our app because getting a fresh location with not optimal GPS reception creates an error now.

While I think it is great to first use the timeout to fetch a fresh location, there should be either:

  • A fallback to return the lastLocation if now fresh location can be fetched
  • A second method (or parameter) to return the last known location instead

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions