I have a Zebra TC55 mobile and in the lastest Chrome version when I try to get orientation data the device returns a null event. If I try it with other mobiles the command is working. The code is so simple and is the next:
window.addEventListener('deviceorientation', function(event) {
console.log(event);
});
And the response is a event with all the fields empty.
DeviceOrientationEvent {isTrusted: true, alpha: null, beta: null, gamma: null, absolute: false, …}
Any help would be great. Thank you in advanced.
Aucun commentaire:
Enregistrer un commentaire