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

Not updating GPS Coords #26

Open
djaus2 opened this issue Jan 2, 2021 · 1 comment
Open

Not updating GPS Coords #26

djaus2 opened this issue Jan 2, 2021 · 1 comment

Comments

@djaus2
Copy link

djaus2 commented Jan 2, 2021

I have found that a Blazor Server App (Scoped Service setting) gets the GPS coords first time, but not for a long time after that. I walk up to about 1K with no change.

  • .NET 5 C# Blazor Server only app.
  • Running in Edge Browser on an Android phone
  • Server is hosted on Azure
  • If I kill all apps on the phone and restart browser , still get same coords.
  • Only if I restart the phone do I get an update
  • An alternative. If I run Google Maps whilst walking and switch between it and browser , GPS coords in browser get updated.

So I conclude there needs to be a trigger to update the GPS coords.

@djaus2
Copy link
Author

djaus2 commented Jan 2, 2021

I looked into it further ..

I am getting Dispatch called when I request an updated location but
navigator.geolocation.getCurrentPosition(function (position)
is not getting updated position, just the previous one.

PS I inserted alert messages in location.js to establish this.

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

1 participant