Closed Bug 1107754 Opened 10 years ago Closed 10 years ago

(gonk-l) device orientation API doesn't work

Categories

(Firefox OS Graveyard :: General, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(feature-b2g:2.2+)

RESOLVED FIXED
2.2 S2 (19dec)
feature-b2g 2.2+

People

(Reporter: askeing, Assigned: viralwang)

References

Details

STR: 1. power on Nexus 5. 2. connect to Nexus 5 by marionette. 3. run deviceorientation and devicemotion API. (ref: https://developer.mozilla.org/en-US/docs/Web/API/Detecting_device_orientation) Excepted: Return the value of deviceorientation and devicemotion. Actual: Reutrn None.
Hi Ben, should this bug be on your plate.
Flags: needinfo?(btian)
Viral will help on this sensor-related bug as well.
Assignee: nobody → vwang
Flags: needinfo?(btian)
***Current status: can get data from 'devicemotion' event now ***Steps: a>> window.addEventListener('devicemotion', function(event) { marionetteScriptFinished(event.accelerationIncludingGravity.x)}, true); 0.340560913086 a>> window.addEventListener('devicemotion', function(event) { marionetteScriptFinished(event.accelerationIncludingGravity.y)}, true); 0.235473632812 a>> window.addEventListener('devicemotion', function(event) { marionetteScriptFinished(event.accelerationIncludingGravity.z)}, true); 9.84156799316 a>> window.addEventListener('deviceorientation', function(event) { marionetteScriptFinished(event.alpha); }); ============build info============ [20141218] local build Build ID 20141218151450 Gaia Revision 58734e8a48157f99d5b733412b600c2e04c954fe Gaia Date 2014-12-18 05:21:04 Gecko Revision n/a Gecko Version 37.0a1 Device Name hammerhead Firmware(Release) 5.0 Firmware(Incremental) eng.askeing.20141218.150855 Firmware Date Thu Dec 18 15:10:01 CST 2014 Bootloader HHZ12d from https://github.com/mozilla-b2g/B2G
Depends on: 1112175
fixed by bug 1112175
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
feature-b2g: --- → 2.2+
Target Milestone: --- → 2.2 S2 (19dec)
You need to log in before you can comment on or make changes to this bug.