Geofence in the Background Windows Phone 8.1 (WinRT)

前端 未结 2 713
再見小時候
再見小時候 2021-02-03 14:50

Issue

I\'m trying to trigger a BackgroundTask when a Geofence Event (Enter / Exit) occurs in WP8.1 (WinRT). I\'ve written a sample application to try to get it working

相关标签:
2条回答
  • 2021-02-03 15:28

    I'm busy with the same stuff, and I also noticed this behaviour, but for me its 2 mins. Unfortunately it always triggers after 2 min, even, if there was no change in location and still inside the fence..

    0 讨论(0)
  • 2021-02-03 15:33

    I've discovered that the above code sample, as well as the above code works. The problem that I was facing was that Windows Phone 8.1 does not automatically trigger a Geofence event. You have to wait a certain amount of time <5 mins before the BackgroundTask is triggered.

    This applies to Geofencing in the foreground as well.

    0 讨论(0)
提交回复
热议问题