Languages

Menu
Sites
Language
deviceorientation event not firing

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!

Responses

14 Replies
AVSukhov

Hello,

According to the documentation the method and event currently not supported are: 

  • initAccelerometerEvent of DeviceMotionEvent interface
  • compassneedscalibration event and DeviceOrientationEvent interface

 

Mike Bockus

Thanks for the reply!  I must have misinterpreted the list of unsupported features.  I thought the DeviceOrientationEvent interface was not supported in the context of the compassneedscalibration event.  I guess what it's saying is the deviceorientation event is also not supported, and the only event currently supported is devicemotion.  

Don

Hi, but according to the release note it should be supported:

  • Device: Touch Events, CSS3 Media Queries (Partial), Vibration API, getUserMedia API, Battery Status, Device Orientation Events (Accelerometer, Gyro sensor only)

see here: https://developer.tizen.org/downloads/sdk/release-notes/tizen-sdk-wearable-1.0.0b1

 

Best Don

Mike Bockus

There are also examples in the Tizen for Wearable help documentation, but the examples haven't been working for me either.  Is there a way to report issues to Tizen or is this forum the best avenue we have?

Kreutz

I thought about that as well.
Spent a good thirty minutes or so googling for "tizen developer support" and similar topics.
Thought I'd find some e-mail or a web form for this purpose, but I didn't.

Would be great if this was reported as a bug or missing feature, as it is indeed supported according to the docs.

Kreutz

I have the exact same problem.

Question:
Is it at all possible to access gyro data from the Gear 2?
How would one go about this? (I really need it for my application!)
 

Rob Guinness

Same issue for me.

Kreutz

I submitted a bug report for this:
https://bugs.tizen.org/jira/browse/PTREL-817

If you have additional details to share or other observations, it might be worth checking out!

Rob Guinness

I also submitted a bug yesterday...sorry, I should have posted here after doing so. It contains basically the same info:

https://bugs.tizen.org/jira/browse/DEVT-184

 

Kreutz

Haha :) Alright.
I submitted my report about 2 weeks ago, and somebody made some changes to the specifications.
However, the issue hasn't been dealt with yet. I'm guessing we'll have to wait for 1.0.0b3 for that to happen.


(Maybe you should edit your report saying the problem has been reported earlier?)
 

Rob Guinness

Yes, I'll do that!

Don

Hi, thanks for your efforts. I hope they fix this as soon as possible. Without this feature the Gear 2 is useless for me...

Jaesik Chang

Gear 2 does not have Compass. So only deviemotion event is supported. Deviceorientation event and compassneedscalibration event are not supported in Gear 3. But Gear S you can use those APIs for sure. 

Don

Hi Jaesik

thanks for your hint, but how can I access the gyro data? Because the accelerometer is not precise enough...
 
Best Don