<?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: Receiving GPS Location take too much time on windows phone in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/receiving-gps-location-take-too-much-time-on/m-p/635903#M7851</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Morten thanks for the reply,yes i checked the built in maps app and there is no delay as soon i click on the gps but map app show the location and zoom to that location and location is also very accurate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 May 2018 17:36:25 GMT</pubDate>
    <dc:creator>Haider_AliFaheem</dc:creator>
    <dc:date>2018-05-30T17:36:25Z</dc:date>
    <item>
      <title>Receiving GPS Location take too much time on windows phone</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/receiving-gps-location-take-too-much-time-on/m-p/635901#M7849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am testing to receive GPS point on Mobile Application&amp;nbsp;on different windows phone(Lumia 550.Lumia 640,Lumia 740 XL) and&amp;nbsp;it is&amp;nbsp; taking nearly a minute to capture the GPS location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i also tested following sample from esri and it also have the same behavior.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Esri/arcgis-runtime-samples-dotnet/tree/master/src/Forms/Shared/Samples/Location/DisplayDeviceLocation" title="https://github.com/Esri/arcgis-runtime-samples-dotnet/tree/master/src/Forms/Shared/Samples/Location/DisplayDeviceLocation"&gt;arcgis-runtime-samples-dotnet/src/Forms/Shared/Samples/Location/DisplayDeviceLocation at master · Esri/arcgis-runtime-sa…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i run the same sample on android and iOS&amp;nbsp;and it is working fine and receive the GPS point in couple of seconds.&lt;/P&gt;&lt;P&gt;why it is taking too much time only on Windows phone.is it the issue of windows Native Api or some ArcGIS runtime have some checks which don't allow signal with low accuracy or something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Windows OS version 10.0.14393, 10.0.15063&lt;/P&gt;&lt;P&gt;ArcGIS Runtime SDk for Xamarin 100.2.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Haider&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2018 14:51:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/receiving-gps-location-take-too-much-time-on/m-p/635901#M7849</guid>
      <dc:creator>Haider_AliFaheem</dc:creator>
      <dc:date>2018-05-30T14:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Receiving GPS Location take too much time on windows phone</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/receiving-gps-location-take-too-much-time-on/m-p/635902#M7850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The location service relies on the phone's location APIs to provide a location. Do you see the same long delay when using the built-in maps app? Is the phone connected online, does it have a clear view of the sky etc?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2018 17:19:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/receiving-gps-location-take-too-much-time-on/m-p/635902#M7850</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2018-05-30T17:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Receiving GPS Location take too much time on windows phone</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/receiving-gps-location-take-too-much-time-on/m-p/635903#M7851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Morten thanks for the reply,yes i checked the built in maps app and there is no delay as soon i click on the gps but map app show the location and zoom to that location and location is also very accurate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2018 17:36:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/receiving-gps-location-take-too-much-time-on/m-p/635903#M7851</guid>
      <dc:creator>Haider_AliFaheem</dc:creator>
      <dc:date>2018-05-30T17:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Receiving GPS Location take too much time on windows phone</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/receiving-gps-location-take-too-much-time-on/m-p/635904#M7852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for confirming. To try and pinpoint what's going on, is it always an entire minute, or only the first time you load the app (ie if you shut the app down after getting a location and start back up immediately, it _should_ be faster) ?&lt;/P&gt;&lt;P&gt;Also if you're moving/walking outside, will it show up faster?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2018 20:37:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/receiving-gps-location-take-too-much-time-on/m-p/635904#M7852</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2018-05-30T20:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Receiving GPS Location take too much time on windows phone</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/receiving-gps-location-take-too-much-time-on/m-p/635905#M7853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no it is everytime take very long ,even if map activity close and open it again.after getting the gps location first time if you disable the LocationDisplay and Start again then it is immediate without closing the form then it is immediate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2018 21:02:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/receiving-gps-location-take-too-much-time-on/m-p/635905#M7853</guid>
      <dc:creator>Haider_AliFaheem</dc:creator>
      <dc:date>2018-05-30T21:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: Receiving GPS Location take too much time on windows phone</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/receiving-gps-location-take-too-much-time-on/m-p/635906#M7854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;...and if you're actively moving? (I'm theorizing that the issue is that the first initial location update is ignored, and if you aren't moving it could be a while before it will trigger another location update)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you could try and duplicate what the location datasource does with this code and see what happens?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; locator &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;Geolocator&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&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; DesiredAccuracy &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; PositionAccuracy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;High&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; MovementThreshold &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; ReportInterval &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1000&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; position &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;await&lt;/SPAN&gt; locator&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GetGeopositionAsync&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;TimeSpan&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;FromHours&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; TimeSpan&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;FromMinutes&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;//How long does this take?&lt;/SPAN&gt;
locator&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;PositionChanged &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;s&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;e&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;// how long before this event triggers?&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp; System&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Diagnostics&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Debugger&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Break&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Another thing you could try is using the location datasource that location display is using directly:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; ds &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;SystemLocationDataSource&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
ds&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;LocationChanged &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;s&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;e&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;// how long before this event triggers?&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Diagnostics&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Debugger&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Break&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;await&lt;/SPAN&gt; ds&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;StartAsync&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;//How long does this one take?&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:02:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/receiving-gps-location-take-too-much-time-on/m-p/635906#M7854</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2021-12-12T03:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Receiving GPS Location take too much time on windows phone</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/receiving-gps-location-take-too-much-time-on/m-p/635907#M7855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Morten,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haider is working in the same team as I do. Thanks for sharing this piece of source code with us. For me that clearifies pretty much what our problem is. According to&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/uwp/api/windows.devices.geolocation.geolocator.desiredaccuracy"&gt;https://docs.microsoft.com/en-us/uwp/api/windows.devices.geolocation.geolocator.desiredaccuracy&lt;/A&gt;&amp;nbsp;the setting&amp;nbsp;&lt;/P&gt;&lt;PRE class="" style="color: #000000; background: #f5f2f0; border: 0px; margin: 0.5em 0px; padding: 1em 1em 1em 3.8em;"&gt;&lt;CODE style="border: 0px; font-weight: inherit;"&gt;DesiredAccuracy &lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit;"&gt;=&lt;/SPAN&gt; PositionAccuracy&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;High&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;is the same as setting the Accuracy to "10 meters". Which is probably more accurate than other applications want their location to be. We already have a custom LocationDatasource attached to the MapView that currently internally uses the SystemLocationDataSource. I think we change this to use&amp;nbsp;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;Geolocator &lt;/SPAN&gt;class directly and use an Accuracy of maybe about 40 meters. That way the location events should start to appear earlier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 07:52:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/receiving-gps-location-take-too-much-time-on/m-p/635907#M7855</guid>
      <dc:creator>RalfSchmidt</dc:creator>
      <dc:date>2018-06-01T07:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Receiving GPS Location take too much time on windows phone</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/receiving-gps-location-take-too-much-time-on/m-p/635908#M7856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since it's Desired and not Required accuracy, the location updates should still come back quick. It really just means "hey also turn on the GPS". If you don't set it, it won't turn on the GPS and just base the location on cell-tower/wifi/ip. But initially you should be getting celltower or wifi based locations until the GPS starts getting a signal. At least that's what I'm observing is happening on my devices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Btw, I love that you're using Windows Phone (I miss my Windows phone). But please be aware that the next update of the runtime will move to require minimum 16299 for the UWP SDK, which means most Windows Phones won't be able to run it. So you might be stuck on 100.2.1 unless you move to Xamarin Android/iOS or a Windows 10 Tablet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 17:04:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/receiving-gps-location-take-too-much-time-on/m-p/635908#M7856</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2018-06-01T17:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Receiving GPS Location take too much time on windows phone</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/receiving-gps-location-take-too-much-time-on/m-p/635909#M7857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found out why we didn't get a location in the beginning. Morten, you wrote: "But initially you should be getting celltower or wifi based locations until the GPS starts getting a signal." That's exactly the point. Since our test device did not have a SIM card I assume it is not able to provide a position based on cell tower.&lt;/P&gt;&lt;P&gt;We solved our issue by simply switching on the SystemLocationDatasource earlier then we need it. However, most users will have a SIM card anyway and will not run into the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2018 09:22:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/receiving-gps-location-take-too-much-time-on/m-p/635909#M7857</guid>
      <dc:creator>RalfSchmidt</dc:creator>
      <dc:date>2018-06-06T09:22:55Z</dc:date>
    </item>
  </channel>
</rss>

