locked
How to Implement Geoposition changed event Background task in Windows Phone 8.1 universal apps

    Question

  • Hi,

    Currently I am migrating WP8 app into WP8.1 Universal app, In WP8 app I am using Background task using Geoposition Changed event. Whenever user position changed the code will get fired. 

    I am confused totally after seeing the Background task implementation in Win RT apps and in WinRT apps background tasks will get fired only when a particular trigger triggers. 

    Can any one help me how to achieve to run the code when geoposition changed throung background task. 

    Thanks in Advance.

    Narendra


    Thursday, May 15, 2014 5:23 PM

Answers

  • Hi Narendramacha,

    I saw the documentation LocationTriggerType enumeration mentioned about Geoposition trigger, you could follow this documentation Quickstart: Create and register a background task to register a LocationTrigger to fire a background task when the geoposition changed.

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Friday, May 16, 2014 7:12 AM
    Moderator