<?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 AGSMapView.gps crashing iPad in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsmapview-gps-crashing-ipad/m-p/275237#M2506</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using version 1 of the ArcGIS for iOS SDK.&amp;nbsp; In my iPad app, whenever I enable GPS (through ESRI's SDK) my mobile app crashes.&amp;nbsp; On the iPhone version, enabling GPS (through the ESRI SDK) does not.&amp;nbsp; Anyone have any tips on this using ESRI's SDK (I understand I can call Core Location directly but would like to go through ESRI's SDK for now) to properly enable GPS on the iPad?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a code snippet which is the same for my iPad and iPhone version.&amp;nbsp; This gets invoked when a user clicks on a 'Round Rect Button' on my view.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- (IBAction)showUsersLocation:(id)sender {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; if(self.mapView.gps.enabled == TRUE) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; self.mapView.gps.stop;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; else {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; self.mapView.gps.start;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; self.mapView.gps.autoPan = TRUE;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 26 Feb 2011 12:51:39 GMT</pubDate>
    <dc:creator>ClintCabanero</dc:creator>
    <dc:date>2011-02-26T12:51:39Z</dc:date>
    <item>
      <title>AGSMapView.gps crashing iPad</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsmapview-gps-crashing-ipad/m-p/275237#M2506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using version 1 of the ArcGIS for iOS SDK.&amp;nbsp; In my iPad app, whenever I enable GPS (through ESRI's SDK) my mobile app crashes.&amp;nbsp; On the iPhone version, enabling GPS (through the ESRI SDK) does not.&amp;nbsp; Anyone have any tips on this using ESRI's SDK (I understand I can call Core Location directly but would like to go through ESRI's SDK for now) to properly enable GPS on the iPad?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a code snippet which is the same for my iPad and iPhone version.&amp;nbsp; This gets invoked when a user clicks on a 'Round Rect Button' on my view.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- (IBAction)showUsersLocation:(id)sender {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; if(self.mapView.gps.enabled == TRUE) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; self.mapView.gps.stop;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; else {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; self.mapView.gps.start;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; self.mapView.gps.autoPan = TRUE;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Feb 2011 12:51:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsmapview-gps-crashing-ipad/m-p/275237#M2506</guid>
      <dc:creator>ClintCabanero</dc:creator>
      <dc:date>2011-02-26T12:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: AGSMapView.gps crashing iPad</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsmapview-gps-crashing-ipad/m-p/275238#M2507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Oops ... I figured it out.&amp;nbsp; Just in case anyone runs into the same thing ... here is a repost that doesn't crash my iPad.&amp;nbsp; The change is using start and stop messages instead of setting properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- (IBAction)showUsersLocation:(id)sender {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; if(self.mapView.gps.enabled == TRUE) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; [self.mapView.gps stop];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; else {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; [self.mapView.gps start];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; self.mapView.gps.autoPan = TRUE;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Feb 2011 14:51:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/agsmapview-gps-crashing-ipad/m-p/275238#M2507</guid>
      <dc:creator>ClintCabanero</dc:creator>
      <dc:date>2011-02-26T14:51:12Z</dc:date>
    </item>
  </channel>
</rss>

