I need to find the current location on windows 8 App but its always results in error.
Here is the code i am using :
try {
var loc = Windows.Devices.Geolocation.Geolocator();
loc.getGeopositionAsync().then(getPositionHandler, errorHandler);
} catch (e) {
// Catch Errors
}
This always results in errorHandler with the error "cancelled".
Also i am trying this on a laptop. Any idea why this is not working ?
Thanks.