device orientation API is not working



Firefox OS
4 years ago
4 years ago


(Reporter: Aras Balali Moghaddam, Unassigned)



Firefox Tracking Flags

(b2g-v1.3 affected)




4 years ago
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0 (Beta/Release)
Build ID: 20140428193813

Steps to reproduce:

I installed an app of mine, that uses the device orientation API, on flatfish. The app is called protractor. It has been tested on keon and some other FirefoxOS devices:

you can install it from marketplace:

window.ondeviceorientation = function (event) {
  // I *suspect* that same happens with any other app that is using this API

All you need to test is open this (or any other similar app) to test device orientation

Actual results:

There is no change in orientation registered as I turn the device around. 
The app manager can not debug this app, so I guess that something fails at lower level maybe? When I try to debug this particular app with app manager it just shows a blank page -- unlike other apps.

Expected results:

1) The device orientation API should work the same way it does on other FirefoxOS devices.
2) The app manager should be able to debug the app if API call fails or gives any errirs
I see this on the keon, but I do not see this on the hamachi/buri device.

Gaia      8d6bd6c484557c5322bf14798a4273d2a8f4300f
BuildID   20140615024002
Version   28.0 Dec 23 16:36:04 CST 2013

Gaia      8d6bd6c484557c5322bf14798a4273d2a8f4300f
Gecko     1165bba0febaef5fbbf858c96634551822246595
BuildID   20140616001051
Version   28.0 Jun 16 00:04:34 CEST 2014

I am pretty sure it doesn't effect 1.3T either at least not on friday's build as I did smoke testing for 1.3T and I would change orientations.
status-b2g-v1.3: --- → affected
Ever confirmed: true
You need to log in before you can comment on or make changes to this bug.