<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Location Error: alert messages in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/location-error-alert-messages/m-p/430064#M39529</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can see those errors here: &lt;A class="link-titled" href="https://developer.mozilla.org/en-US/docs/Web/API/PositionError" title="https://developer.mozilla.org/en-US/docs/Web/API/PositionError"&gt;PositionError - Web APIs | MDN&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 May 2017 15:30:21 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2017-05-31T15:30:21Z</dc:date>
    <item>
      <title>Location Error: alert messages</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/location-error-alert-messages/m-p/430063#M39528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found this set of errors in several sample codes like &lt;A href="https://developers.arcgis.com/javascript/3/jssamples/mobile_geolocaterenderer.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Geolocation with a temporal renderer&lt;/A&gt;&lt;SPAN style="color: #636363; background-color: #fefefe;"&gt;&amp;nbsp;and &lt;A href="https://developers.arcgis.com/javascript/3/jssamples/mobile_compass.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Compass&lt;/A&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;locationError&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;error&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="keyword token"&gt;switch&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;error&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;code&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;case&lt;/SPAN&gt; error&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;PERMISSION_DENIED&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="token function"&gt;alert&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Location not provided"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;break&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;case&lt;/SPAN&gt; error&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;POSITION_UNAVAILABLE&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="token function"&gt;alert&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Current location not available"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;break&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;case&lt;/SPAN&gt; error&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;TIMEOUT&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="token function"&gt;alert&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Timeout"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;break&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;default&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="token function"&gt;alert&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"unknown error"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;break&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;A&amp;nbsp;end user might not&amp;nbsp;know what the&amp;nbsp;problem is because the alert message is not very clear.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Except from "unknown error" which is pretty clear.... what does each &lt;SPAN&gt;specific &lt;/SPAN&gt;error mean?&lt;/P&gt;&lt;P&gt;What&amp;nbsp;might be the reason you see&amp;nbsp;it on your device?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:20:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/location-error-alert-messages/m-p/430063#M39528</guid>
      <dc:creator>JohnDenis</dc:creator>
      <dc:date>2021-12-11T19:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Location Error: alert messages</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/location-error-alert-messages/m-p/430064#M39529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can see those errors here: &lt;A class="link-titled" href="https://developer.mozilla.org/en-US/docs/Web/API/PositionError" title="https://developer.mozilla.org/en-US/docs/Web/API/PositionError"&gt;PositionError - Web APIs | MDN&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 15:30:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/location-error-alert-messages/m-p/430064#M39529</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2017-05-31T15:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Location Error: alert messages</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/location-error-alert-messages/m-p/430065#M39530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3b3c40; background-color: rgba(212, 221, 228, 0.15);"&gt;Hi Ken,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3b3c40; background-color: rgba(212, 221, 228, 0.15);"&gt;A follow up on these properties to make sure my understanding is correct.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: rgba(212, 221, 228, 0.15); color: #3b3c40;"&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: rgba(212, 221, 228, 0.15); color: #3b3c40;"&gt;&lt;SPAN&gt;PERMISSION_DENIED:&amp;nbsp;&lt;/SPAN&gt;"The acquisition of the geolocation information failed because the page didn't have the permission to do it."&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: rgba(212, 221, 228, 0.15); color: #3b3c40;"&gt;&lt;STRONG style="background-color: rgba(212, 221, 228, 0.25); color: #3d3d3d;"&gt;Does it mean that t&lt;/STRONG&gt;here is an issue with the device settings, for example Location Services is not enabled?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: rgba(212, 221, 228, 0.25); : ; color: #3b3c40;"&gt;POSITION_UNAVAILABLE: "The acquisition of the geolocation failed because at least one internal source of position returned an internal error."&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: rgba(212, 221, 228, 0.25); : ; color: #3b3c40;"&gt;What is a&amp;nbsp;internal source of position? Does it refer to having no GPS signal?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="background-color: rgba(212, 221, 228, 0.25); : ; color: #3b3c40;"&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="background-color: rgba(212, 221, 228, 0.25); : ; color: #3b3c40;"&gt;&lt;EM style="background-color: rgba(212, 221, 228, 0.15); color: #3b3c40; font-weight: normal;"&gt;TIMEOUT: "&lt;SPAN&gt;The time allowed to acquire&amp;nbsp;the geolocation, defined by &lt;/SPAN&gt;&lt;A href="https://developer.mozilla.org/en-US/docs/Web/API/PositionOptions/timeout" style="color: #217ac0; border: 0px; text-decoration: none;" title="The PositionOptions.timeout property is a positive long value representing the maximum length of time (in milliseconds) the device is allowed to take in order to return a position. The default value is Infinity, meaning that getCurrentPosition() won't return until the position is available."&gt;&lt;CODE style="border: 0px; font-weight: inherit;"&gt;PositionOptions.timeout&lt;/CODE&gt;&lt;/A&gt;&lt;SPAN&gt; information was reached before the information was obtained."&lt;/SPAN&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: rgba(212, 221, 228, 0.15); : ; color: #3b3c40;"&gt;Does it mean that the device exceeded the lenght of&amp;nbsp;time &lt;SPAN style="background-color: #ffffff;"&gt;allowed in order to&amp;nbsp;&lt;/SPAN&gt;return the location?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(212, 221, 228, 0.15); color: #3b3c40;"&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 17:40:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/location-error-alert-messages/m-p/430065#M39530</guid>
      <dc:creator>JohnDenis</dc:creator>
      <dc:date>2017-05-31T17:40:47Z</dc:date>
    </item>
  </channel>
</rss>

