AnsweredAssumed Answered

Location Error: alert messages

Question asked by JohnDenis on May 31, 2017
Latest reply on May 31, 2017 by JohnDenis

I found this set of errors in several sample codes like Geolocation with a temporal renderer and Compass:

function locationError(error){
  switch (error.code) {
    case error.PERMISSION_DENIED:
      alert("Location not provided");
      break;
    case error.POSITION_UNAVAILABLE:
      alert("Current location not available");
      break;
    case error.TIMEOUT:
      alert("Timeout");
      break;
    default:
      alert("unknown error");
      break;
  }
}

A end user might not know what the problem is because the alert message is not very clear. 

 

Except from "unknown error" which is pretty clear.... what does each specific error mean?

What might be the reason you see it on your device?

 

Thank you!

Outcomes