Issue in the Xrm.Utility.getCurrentPosition() in mobile App RRS feed

  • Question

  • 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 

    Friday, December 1, 2017 1:10 PM

All replies

  • Could anyone help me on above question?
    Monday, December 4, 2017 7:30 AM