Geofence in the Background Windows Phone 8.1 (WinRT)

前端 未结 2 757
再見小時候
再見小時候 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: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.

提交回复
热议问题