device orientation API is not working

NEW
Unassigned

Status

Firefox OS
Gaia::System
4 years ago
4 years ago

People

(Reporter: Aras Balali Moghaddam, Unassigned)

Tracking

unspecified

Firefox Tracking Flags

(b2g-v1.3 affected)

Details

(Reporter)

Description

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: 
https://github.com/arasbm/protractor/blob/master/app/js/protractor.js

you can install it from marketplace:
https://marketplace.firefox.com/app/protractor?src=search

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
Gecko     https://hg.mozilla.org/releases/mozilla-b2g28_v1_3/rev/dc92670d5413
BuildID   20140615024002
Version   28.0
ro.build.version.incremental=eng.tclxa.20131223.163538
ro.build.date=Mon Dec 23 16:36:04 CST 2013
Buri

Gaia      8d6bd6c484557c5322bf14798a4273d2a8f4300f
Gecko     1165bba0febaef5fbbf858c96634551822246595
BuildID   20140616001051
Version   28.0
ro.build.version.incremental=7
ro.build.date=Mon Jun 16 00:04:34 CEST 2014
Keon

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: UNCONFIRMED → NEW
status-b2g-v1.3: --- → affected
Ever confirmed: true
You need to log in before you can comment on or make changes to this bug.