GetGeopositionAsync does not return

后端 未结 10 742
北恋
北恋 2021-01-08 00:13

In my Windows Phone 8 app, I am trying to use GetGeopositionAsync on the main page to display some items based on user location.

Calling GetGeopositionAsync does not

10条回答
  •  温柔的废话
    2021-01-08 00:36

    I found one thing. If I set accuracy to bigger one then geolocator starts return coordinates. So it dosen't work for 50 meters but works for 500 so try to use the line below instead.

            geolocator.DesiredAccuracyInMeters = 500;
    

提交回复
热议问题