lundi 12 mai 2014

Geolocation.watchPosition on device does not fire in conjunction with frequency value

Hi there

I am using the watchPosition function of Ext.device.Geolocation & finding that when on a device, it fires intermittently and not in conjunction with the frequency value that has been set. Here is my code:



Code:



var successFn = function(position) {
log(position);
};
var failFn = function(error) {
log('Error: ');
log(error);
};
Ext.device.Geolocation.watchPosition({
frequency: 5000,
allowHighAccuracy:true,
callback: successFn,
failure: failFn
});

On the device the position only gets logged about 3 times in 10 minutes & the fail function never fires. Has anyone else experienced this?

-tt88





Aucun commentaire:

Enregistrer un commentaire