<?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: Xamarin Forms - SystemLocationDataSource is not accessible in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-forms-systemlocationdatasource-is-not/m-p/462234#M5716</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Yes,&amp;nbsp;the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="border: 0px;"&gt;LocationChanged event is giving the location every time it changes, but I need latitude, longitude coordinates of every location point that I get from the&amp;nbsp;&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;LocationChanged&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not following. The event arguments carries all that information (see the Position property):&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/android/api-reference/html/T_Esri_ArcGISRuntime_Location_Location.htm" title="https://developers.arcgis.com/net/latest/android/api-reference/html/T_Esri_ArcGISRuntime_Location_Location.htm"&gt;Location Class&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm no expert in backgrounding for apps. Again the platform documentation is likely a lot better in this regard, as it's not really an esri-runtime specific thing. They should all have examples of how to continue getting location updates while backgrounded - once enabled, our LocationDataSource should continue to work and report updates (as it's just a thin wrapper around the native built-in location APIs).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Aug 2020 06:28:02 GMT</pubDate>
    <dc:creator>dotMorten_esri</dc:creator>
    <dc:date>2020-08-06T06:28:02Z</dc:date>
    <item>
      <title>Xamarin Forms - SystemLocationDataSource is not accessible</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-forms-systemlocationdatasource-is-not/m-p/462229#M5711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement to show a real-time user location trail on the ArcGIS map, and was referring to&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/forms/sample-code/show-location-history/" title="https://developers.arcgis.com/net/latest/forms/sample-code/show-location-history/"&gt;Show location history | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;to show the user's real-time location.&amp;nbsp;Referring&amp;nbsp;to the link I&amp;nbsp;am&amp;nbsp;trying to use&amp;nbsp;SystemLocationDataSource but I can't access it in&amp;nbsp; Esri.ArcGISRunTime.Location. I&amp;nbsp;am using&amp;nbsp;Esri.ArcGISRunTime.Xamarin.Forms(100.7.0) version,&amp;nbsp;and also tried with version 100.6.0 and 100.7.0 but the same issue persists. I checked Assembly Browser, and can't find this class inside&amp;nbsp;&lt;SPAN&gt;Esri.ArcGISRunTime.Location in my project but when I access it through the ArcGIS git project(&lt;A class="link-titled" href="https://github.com/Esri/arcgis-runtime-samples-dotnet/tree/master/src/Forms" title="https://github.com/Esri/arcgis-runtime-samples-dotnet/tree/master/src/Forms"&gt;arcgis-runtime-samples-dotnet/src/Forms at master · Esri/arcgis-runtime-samples-dotnet · GitHub&lt;/A&gt;&amp;nbsp;) it is available(Attaching assembly info of both the projects).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really can't figure out what am I missing here. Any Help will be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kavita&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2020 14:58:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-forms-systemlocationdatasource-is-not/m-p/462229#M5711</guid>
      <dc:creator>KavitaPandey</dc:creator>
      <dc:date>2020-07-31T14:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Xamarin Forms - SystemLocationDataSource is not accessible</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-forms-systemlocationdatasource-is-not/m-p/462230#M5712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See my response here:&amp;nbsp;&lt;A _jive_internal="true" class="link-titled" href="https://community.esri.com/message/933576-re-how-do-i-get-a-reference-to-systemlocationdatasource-in-net-standard-library?commentID=933576#comment-933866" title="https://community.esri.com/message/933576-re-how-do-i-get-a-reference-to-systemlocationdatasource-in-net-standard-library?commentID=933576#comment-933866"&gt;https://community.esri.com/message/933576-re-how-do-i-get-a-reference-to-systemlocationdatasource-in-net-standard-librar…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2020 17:04:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-forms-systemlocationdatasource-is-not/m-p/462230#M5712</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2020-07-31T17:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Xamarin Forms - SystemLocationDataSource is not accessible</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-forms-systemlocationdatasource-is-not/m-p/462231#M5713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Morten,&lt;/P&gt;&lt;P&gt;Thank you so much for your reply. I am able to get location coordinates with the workaround you suggested in the above link. I have&amp;nbsp;few more queries based on this same real-time user location tracking:&lt;/P&gt;&lt;P&gt;1. I need to get the latitude, longitude coordinates from the MapPoint that I am getting from the LocationChanged event of LocationDataSource. Do you have any idea how can I achieve this?&lt;/P&gt;&lt;P&gt;2. Does this real-time tracking with LocationDataSource work with offline maps as well?&lt;/P&gt;&lt;P&gt;3.&amp;nbsp;&lt;SPAN&gt;Does this real-time tracking with&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;LocationDataSource work when the application is in the background?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As mentioned above, I am referring the ArcGIS&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/forms/sample-code/show-location-history/" title="https://developers.arcgis.com/net/latest/forms/sample-code/show-location-history/"&gt;Show location history | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&amp;nbsp;for real-time user location trail and I have initialized my LocationDataSource&amp;nbsp; with below code as suggested by you:&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN&gt;LocationDataSource_locationDataSource = (LocationDataSource)Activator.CreateInstance(locDStype);&lt;BR /&gt;MyMapView.LocationDisplay.DataSource = _locationDataSource;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me with these queries.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2020 20:27:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-forms-systemlocationdatasource-is-not/m-p/462231#M5713</guid>
      <dc:creator>KavitaPandey</dc:creator>
      <dc:date>2020-08-05T20:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: Xamarin Forms - SystemLocationDataSource is not accessible</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-forms-systemlocationdatasource-is-not/m-p/462232#M5714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. I'm not sure what you're asking? You mentioned the LocationChanged event, and that's what you'd use to get the location every time it's updated. The location is on the event arguments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. LocationDataSource doesn't use the map - it uses the built-in location service - if that can get a location, so can we (I think in flight mode for instance the GPS chip is off too). So it depends on the device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Running applications in the background is a very platform specific question. I'd suggest you look at Android, iOS and Windows documentation regarding configuring you app to continue getting location&amp;nbsp;updates while in the background.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2020 21:53:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-forms-systemlocationdatasource-is-not/m-p/462232#M5714</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2020-08-05T21:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Xamarin Forms - SystemLocationDataSource is not accessible</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-forms-systemlocationdatasource-is-not/m-p/462233#M5715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Hello&amp;nbsp;&lt;SPAN&gt;Morten,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;1. Yes,&amp;nbsp;the&amp;nbsp;&lt;SPAN&gt;LocationChanged event is giving the location every time it changes, but I need latitude, longitude coordinates of every location point that I get from the&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;LocationChanged event&lt;/SPAN&gt;&amp;nbsp;for another use case. So, how can&amp;nbsp;I achieve that?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;2.&amp;nbsp;I&amp;nbsp;checked it on IOS by switching off the internet and was getting location coordinates, will also check on Android and Windows.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;3. I have done the backgrounding configuration for all IOS, Android, and Windows platforms and also I am able to get location points with another Xamarin service when the app is in the background but when I checked LocationDataSource I found that when the app is in background&amp;nbsp;&lt;SPAN&gt;LocationChanged is not getting called, and when the app comes in the foreground again&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;LocationChanged starts getting called. Does any other configuration need to be done for this to work in the background? Or it actually doesn't support backgrounding?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2020 06:21:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-forms-systemlocationdatasource-is-not/m-p/462233#M5715</guid>
      <dc:creator>KavitaPandey</dc:creator>
      <dc:date>2020-08-06T06:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Xamarin Forms - SystemLocationDataSource is not accessible</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-forms-systemlocationdatasource-is-not/m-p/462234#M5716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Yes,&amp;nbsp;the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="border: 0px;"&gt;LocationChanged event is giving the location every time it changes, but I need latitude, longitude coordinates of every location point that I get from the&amp;nbsp;&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: inherit;"&gt;LocationChanged&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not following. The event arguments carries all that information (see the Position property):&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/android/api-reference/html/T_Esri_ArcGISRuntime_Location_Location.htm" title="https://developers.arcgis.com/net/latest/android/api-reference/html/T_Esri_ArcGISRuntime_Location_Location.htm"&gt;Location Class&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm no expert in backgrounding for apps. Again the platform documentation is likely a lot better in this regard, as it's not really an esri-runtime specific thing. They should all have examples of how to continue getting location updates while backgrounded - once enabled, our LocationDataSource should continue to work and report updates (as it's just a thin wrapper around the native built-in location APIs).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2020 06:28:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/xamarin-forms-systemlocationdatasource-is-not/m-p/462234#M5716</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2020-08-06T06:28:02Z</dc:date>
    </item>
  </channel>
</rss>

