Not updating GPS Coords
Opened this issue · 1 comments
djaus2 commented
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 commented
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.