AspNetMonsters / Blazor.Geolocation

Blazor interop for browers Geolocation apis
MIT License
91 stars 25 forks source link

Not updating GPS Coords #26

Open djaus2 opened 3 years ago

djaus2 commented 3 years ago

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.

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

djaus2 commented 3 years ago

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.