Hi there,
I am trying to test GeoLocation on the emulator but it fails. I am sending the coordinates through the emulator extensions menu yet it does not find the location. It works flawlessly with ionic serve
and iOS Sim
and iOS
device.
Is there anything I should check? Permissions are set within the app in config.xml
? It used to work as it was on Android devices but now fails…
$cordovaGeolocation.getCurrentPosition({ maximumAge: 60000, timeout: 30000, enableHighAccuracy: false }).then(function (position) {
//doStuff...
}
FIXED
Turns out that at least for the emulator highAccuracy must be enabled (true
)