navigator.geolocation.getCurrentPosition(function (locat) {
var latitude = locat.coords.latitude;
var longitude = locat.coords.longitude;
}
We call this code recursively to continuously track the user's current location, and we are able to retrieve the current location when a user is using our application. When the user minimizes our application or the Dynamics 365 app, tracking stops. Is there a way to continuously track the user's current location even when the app is minimized.
Thanks!