Hi,
I am using the Xrm.Utility.getCurrentPosition() to get the current latitude longitude in the mobile. There are few scenarios where we are not getting the error from the getCurrentPosition() function:
1. When i disable the app location.
2. When i disable the mobile GPS.
here is the below code which i am using.
Xrm.Utility.getCurrentPosition().then(function (locat) {
var latitude = locat.coords.latitude;
var longitude = locat.coords.longitude;
}, function (error) {
alert(error.message); });
Thanks In advance