vb.net - Accessing Location on Windows 10 in .net desktop application -
the company work has application used our field staff registers gps location periodically, wrote application windows 8 x86 using system.device.location geocoordinatewatcher class. in windows 10 same code ceases function properly, geocoordinatewatcher.permission returns granted, yet continue receive unknown position each call. windows 8 , windows 10 tablets both have lte. public function getlocation() geocoordinate dim geocoordinate geocoordinate dim watcher geocoordinatewatcher watcher = new geocoordinatewatcher(geopositionaccuracy.high) watcher.trystart(false, timespan.frommilliseconds(15000)) logtofile("position permission: " & watcher.permission.tostring) logtofile("watcher status: " & watcher.status.tostring) geocoordinate = watcher.position.location if geocoordinate.isunknown logtofile("unknown") else logtofile(string.form...