<?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 Background geolocation crashes app in debug in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Background-geolocation-crashes-app-in-debug/m-p/1069422#M57566</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I know you can't do support for third party plugins, but is there anyway to find out why it crashes?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Problem description:&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;Works fine in actual app, but crashes in debug via App Preview&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;when calling&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;backgroundGeolocation.start().&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;plugin:&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;id="cordova-plugin-mauron85-background-geolocation"&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;version="2.1.2"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;Lars B.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Jul 2016 04:23:32 GMT</pubDate>
    <dc:creator>Brandt__Lars</dc:creator>
    <dc:date>2016-07-22T04:23:32Z</dc:date>
    <item>
      <title>Background geolocation crashes app in debug</title>
      <link>https://community.intel.com/t5/Software-Archive/Background-geolocation-crashes-app-in-debug/m-p/1069422#M57566</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I know you can't do support for third party plugins, but is there anyway to find out why it crashes?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Problem description:&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;Works fine in actual app, but crashes in debug via App Preview&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;when calling&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;backgroundGeolocation.start().&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;plugin:&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;id="cordova-plugin-mauron85-background-geolocation"&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;version="2.1.2"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;Lars B.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2016 04:23:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Background-geolocation-crashes-app-in-debug/m-p/1069422#M57566</guid>
      <dc:creator>Brandt__Lars</dc:creator>
      <dc:date>2016-07-22T04:23:32Z</dc:date>
    </item>
    <item>
      <title>Sorry, edit function does not</title>
      <link>https://community.intel.com/t5/Software-Archive/Background-geolocation-crashes-app-in-debug/m-p/1069423#M57567</link>
      <description>&lt;P&gt;Sorry, edit function does not work, so had to do this in a new post:&lt;/P&gt;

&lt;P&gt;Code to reproduce:&lt;/P&gt;

&lt;P&gt;var callbackFn = function(location) { &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;/*&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;IMPORTANT: &amp;nbsp;You must execute the finish method here to inform the native plugin that you're finished,&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;and the background-task may be completed. &amp;nbsp;You must do this regardless if your HTTP request is successful or not.&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;IF YOU DON'T, ios will CRASH YOUR APP for spending too much time in the background.&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;*/&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;backgroundGeoLocation.finish();&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;};&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;var failureFn = function(error) {&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;console.log('BackgroundGeoLocation error');&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;};&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var config = {&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; desiredAccuracy: 0,&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stationaryRadius: 0,&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; distanceFilter: 1,&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;startForeground: true,&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;locationProvider: 0, // 0 =&amp;gt; ANDROID_DISTANCE_FILTER_PROVIDER | 1 =&amp;gt; ANDROID_ACTIVITY_PROVIDER&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;interval: 1000,&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;fastestInterval: 500,&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;activitiesInterval: 1000,&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; activityType: 'AutomotiveNavigation',&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; debug: VD_XDK_GPS_SHOW_DEBUG, //enable this hear sounds for background-geolocation life-cycle.&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stopOnTerminate: false //enable this to clear background location settings when the app terminates&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; };&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; backgroundGeoLocation.configure(callbackFn, failureFn, config);&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; backgroundGeoLocation.start();&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2016 04:29:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Background-geolocation-crashes-app-in-debug/m-p/1069423#M57567</guid>
      <dc:creator>Brandt__Lars</dc:creator>
      <dc:date>2016-07-22T04:29:12Z</dc:date>
    </item>
    <item>
      <title>I'm assuming you mean it</title>
      <link>https://community.intel.com/t5/Software-Archive/Background-geolocation-crashes-app-in-debug/m-p/1069424#M57568</link>
      <description>&lt;P&gt;I'm assuming you mean it crashes when you use the Debug tab? Because App Preview doesn't support that plugin. Not sure why it would cause a custom debug module to fail, but that method is not fool-proof, there are some things that simply do not work except in a built app, and this may be one of them. If you need to do some debugging with the app, you can always debug the built app with a USB cable and remote CDT. See this doc page for some help &amp;gt; &lt;A href="https://software.intel.com/en-us/xdk/docs/intel-xdk-debug-and-test-overview#RemoteChromeDevTools" target="_blank"&gt;https://software.intel.com/en-us/xdk/docs/intel-xdk-debug-and-test-overview#RemoteChromeDevTools&lt;/A&gt; &amp;lt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2016 06:01:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Background-geolocation-crashes-app-in-debug/m-p/1069424#M57568</guid>
      <dc:creator>PaulF_IntelCorp</dc:creator>
      <dc:date>2016-07-22T06:01:55Z</dc:date>
    </item>
  </channel>
</rss>

