Location tracking in background - WP 8.1

hosney

New member
Mar 24, 2014
21
0
0
Visit site
From the MSDN documentation it appears that tracking the location when the app is not in the foreground is not available in WP 8.1. But I've noticed that the app Track Runner does this.

Is there a workaround for this that anyone knows of?
 

Tornado92

New member
Jun 26, 2014
52
0
0
Visit site
Use Silverlight 8.1. App that features location tracking that use Silverlight 8.1 that I know of is HERE Drive+.

Or do you mean for WinRT?
 

Im_Q

New member
Nov 26, 2012
119
0
0
Visit site
Continuous background execution is not supported in WP8.1. This includes both WinRT and Silverlight. Looking quickly at Track Runner and Here Drive, they are WP8.0 SL apps and those apps can run on 8.1 devices fine. I believe they didn't have the time to implement this for WinRT and 8.1 SL is actually quite different underneath while maintaining the same public API for compatibility. Unfortunately, this is one of those areas they didn't accomplish. Hopefully they implement it in the future but my guess is that broken SL capability will need to remain in 8.0 SL while WinRT will get some new implementation of continuous background execution going forward in next version of WP or if Windows RT/WP merged.
 

hosney

New member
Mar 24, 2014
21
0
0
Visit site
Track Runner and Here Drive+ are only available for WP 8.1 and not WP 8.0. Also Track Runner uses SensorCore and Bluetooth 4.0 (which is only available in WP 8.1 Cyan and can only be used from WP 8.1 SL or RT) so I doubt this is a WP 8.0 SL app.

Anyway thanks for all the help!
 

Im_Q

New member
Nov 26, 2012
119
0
0
Visit site
I don't see any indication that Here Drive+ is a WP8.1 app. Both apps support WP8.0 so both have a 8.0 xap but not necessarily a 8.1 xap. But looking closer at Track Runner, it does seem that it needs to be a WP8.1 app to do what it can do. I believe, however, they might be using a non-public set of api to accomplish this. I came across an article that loosely alludes to the devs working with Microsoft prior to their SensorCore enabled version's release. Bing Fitness is another location tracking-enabled app that has SensorCore support so it's clear that Microsoft has some private APIs that allows background tracking and is sharing with select devs. This was the case before accessing on-device video files were allowed in WP8.0. Apps like Whatsapp had private APIs to read and load video files where other devs did not.
 

hosney

New member
Mar 24, 2014
21
0
0
Visit site
If you look at the Track Runner app page you'll notice that under the Works with section only Windows Phone 8.1 is listed. Same goes for Here Drive+. If the xap was built for WP 8.0, both 8.0 and 8.1 will be listed in this section.

I think the app could be making use of a background task instead of the former method to track the location. That is another possibility apart from what you suggested.
 

Im_Q

New member
Nov 26, 2012
119
0
0
Visit site
Capture.JPG
Sorry for the tall image, didn't want to modify the image.
Track Runner | Windows Phone Apps+Games Store (United States)

That is the only Track Runner available when I searched for it. It is also the one I installed to investigate it. It lists both 8.1 and 8.0. This is also the same case when I search for Here Drive+. You're not seeing WP8.0 because you're signed in with a WP8.1 device selected as your default device.
 

hosney

New member
Mar 24, 2014
21
0
0
Visit site
They have a version for WP 8.0 but it's old and does not include the newer features. So the new one with the background tracking and sensorcore is actually WP 8.1 and no longer WP 8.0. Same with Here Drive+. The WP 8.0 version is old and hasn't been updated in a while. So both these apps actually have 2 xap/appx files and the older one is no longer maintained.

I've attached screenshots of the 2 versions.
new.png
old.png
 

hosney

New member
Mar 24, 2014
21
0
0
Visit site
You were right about me being signed in btw. The store displays the xap/appx applicable to your device when you're signed which is why I was seeing the latest app version for each app, which only supports WP 8.1. But if I were to select a device that still uses WP 8.0 (yes I have quite a few :smile:) it would show me the older version. When I'm not signed in it simply shows both.
 

Members online

Forum statistics

Threads
326,610
Messages
2,248,631
Members
428,522
Latest member
BarkerJarrod