0
C#을 사용하여 Windows 8.1 Store App을 개발했으며 사용자의 현재 위치를 감지하려고합니다. Wi-Fi에 연결할 때 완벽한 위치를 얻었지만 3G/4G 네트워크에 연결되어 있으면 현재 위치를 전혀 알 수 없거나 때로는 위치별로 제공하지 않습니다. 다음 코드를 사용하여 현재 위치를 감지하고 있습니다.Windows 8.1에서 3G/4G 네트워크의 현재 위치 문제 앱을 저장 하시겠습니까?
geolocator = new Geolocator();
geolocator.DesiredAccuracy = PositionAccuracy.High;
geolocator.DesiredAccuracyInMeters = 1000;
geolocator.MovementThreshold = 100;
//geolocator.ReportInterval = 500;
try
{
Geoposition mygeoPosition = await geolocator.GetGeopositionAsync();
}
catch(UnauthorizedAccessException ex)
{
UserMessageUtil.ShowMessage("Location is disabled in Settings");
await Launcher.LaunchUriAsync(new Uri("ms-settings-location:"));
}
catch(Exception ex)
{
UserMessageUtil.ShowMessage("We are sorry, location services are unavailable.");
}
geolocator.PositionChanged += geolocator_PositionChanged;
누군가 잘못된 제안을 할 수 있습니까? 3G/4G 네트워크로 현재 위치를 확인할 수있는 다른 앱이 있습니까?
모바일 장치에서는 정상적으로 작동하지만 태블릿에서는 GPS가있는 경우에도 근처의 위치 정보를 제공합니다. –
내 코드에 문제가 있습니까? –
건물에있는 경우 GPS가 작동하지 않는 경우가 많으며 위치 측정기가 사용자 위치를 찾기 위해 정확도가 떨어지는 경우가 종종 있습니다. – rbrundritt