From my testing I am not able to update my current location. First time when the app is started locaton is set ok, but I want to update my locaiton regularely.
Testet on:
Fusetools: 0.35.0 (Build 10867) IOS: 9.3.2 (13F69), emulator: 10.2 (14C89)
var location = Observable(GeoLocation.location);
var timeoutMs = 3000;
GeoLocation.getLocation(timeoutMs).then(function (loc) {
location.value = loc;
}).catch(function (error) {
debugger;
showError.value = true;
errorMessage.value = err.message;
});
GeoLocation.onChanged = function (loc) {
location.value = loc;
}
GeoLocation.onError = function (error) {
}
function startContinousListener () {
var intervalMs = 10000;
var desiredAccuracyInMeters = 10;
GeoLocation.startListening(intervalMs, desiredAccuracyInMeters);
}
startContinousListener();
function stopContinousListener () {
GeoLocation.stopListener();
}