Answered by:
[W8.1]How to run location-tracking apps in the background for Windows 8.1 device

Question
-
I need to track position in background for some devices running with Windows 8.1 pro.
So I need something similar to the below article but cannot find it:
https://msdn.microsoft.com/en-us/library/windows/apps/jj662935(v=vs.105).aspx
Please help somehow.
s
- Edited by Amy PengMicrosoft employee Thursday, July 16, 2015 9:49 AM add tag
Wednesday, July 15, 2015 10:07 AM
Answers
-
Hi SeDevWP,
In my mind you need to create the backgroundtask with a TimeTrigger to obtain the location information.
For more information, please try to refer to the following article:
#How to run a background task on a timer (XAML):
https://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh977059.aspx?f=255&MSPPError=-2147217396 .Best Regards,
Amy PengWe are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- Proposed as answer by Amy PengMicrosoft employee Wednesday, July 29, 2015 9:35 AM
- Marked as answer by SeDevWP Wednesday, July 29, 2015 9:37 AM
Monday, July 20, 2015 2:02 AM
All replies
-
Hi SeDevWP,
Welcome to the Developing Universal Windows apps forum!
Please read the sticky posts, especially the Guide to posting: subject line tags and Known Issues for Windows 10 SDK and ToolsAs far as I known, Windows runtime does not support do the location-tracking apps in the background as Windows Phone 8.0 does. So if you want to have the function like the location-tracking in the background, you still need to implement it by yourself by using the Geofence and a Backgroundtask
.
For more information, please try to check the following similar thread:
https://social.msdn.microsoft.com/Forums/windowsapps/en-US/b33e1e74-c371-4d0e-847a-6192cd4aabf9/window-phone-81-version-how-to-run-locationtracking-apps-in-the-background-for-windows-phone-8?forum=wpdevelop .
http://stackoverflow.com/questions/24481384/windows-phone-8-1-location-tracking .Best Regards,
Amy Peng
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.
- Edited by Amy PengMicrosoft employee Thursday, July 16, 2015 3:55 PM
- Proposed as answer by Pallam Madhukar Thursday, July 16, 2015 4:52 PM
Thursday, July 16, 2015 9:48 AM -
your geofence and backgroundtask links point to the same pageThursday, July 16, 2015 3:32 PM
-
your geofence and backgroundtask links point to the same page
Hi eeadev,
I am very sorry, I have edited the link in my first reply.
Thank you very much for your reminder.
Best Regards,
Amy PengWe are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.Thursday, July 16, 2015 3:56 PM -
Amy, do you think would be possible to run a background task (for instance every 5') and obtain the gps info everytime it runs?
s
Thursday, July 16, 2015 4:00 PM -
Hi SeDevWP,
In my mind you need to create the backgroundtask with a TimeTrigger to obtain the location information.
For more information, please try to refer to the following article:
#How to run a background task on a timer (XAML):
https://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh977059.aspx?f=255&MSPPError=-2147217396 .Best Regards,
Amy PengWe are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- Proposed as answer by Amy PengMicrosoft employee Wednesday, July 29, 2015 9:35 AM
- Marked as answer by SeDevWP Wednesday, July 29, 2015 9:37 AM
Monday, July 20, 2015 2:02 AM