I'm playing around with developing on the Tizen platform for my Gear 2 device. I was interested in developing an app that depends on the orientation of the watch. Not the screen orientation, but the specific device orientation. I'm attempting to monitor the device orientation by adding the following event listener:
window.addEventListener('deviceorientation', function(e) {
// pull from DeviceOrientationEvent and update interface based on alpha, beta, gamma
}, true);
I also have the following features added to my config:
<feature name="http://tizen.org/feature/sensor.accelerometer"/>
<feature name="http://tizen.org/feature/sensor.gyroscope"/>
<feature name="http://tizen.org/feature/sensor.magnetometer"/>
I've been referencing the help for the Tizen IDE for Wearable, and it says that the deviceorientation event specified here should be supported. The devicemotion event seems to fire successfully, but the deviceorientation event is never triggered.
Any ideas on why that event is not firing? Please let me know if you need additional details.
Thanks!