Closed Bug 1154577 Opened 10 years ago Closed 10 years ago

[FFOS2.0][Woodduck][Vibrate]Keep vibrating when the phone screen light off

Categories

(Firefox OS Graveyard :: Gaia, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: sync-1, Unassigned)

References

Details

Attachments

(1 file)

CONTACT INFO (xiongqin.bi.hz.com): DEFECT DESCRIPTION: we use the API: window.setInterval(function repeat() { navigator.vibrate([920]); }, 1500); when the screen light off, vibrate is inactive when the screen light on, vibrate is active REPRODUCING PROCEDURES: EXPECTED BEHAVIOUR: The API navigator.vibrate([920]) is active no matter the screen on or off. ASSOCIATE SPECIFICATION: TEST PLAN REFERENCE: TOOLS AND PLATFORMS USED: USER IMPACT: REPRODUCING RATE: For FT PR, Please list reference mobile's behavior:
Hi Viral, As we discussed offline, could you please help to provide some suggestion? Thanks!
Flags: needinfo?(vwang)
It's a hack to make vibrate work when screen is off. I'm not so sure why we need to make vibrate work but didn't explain what it vibrates for on screen?
Flags: needinfo?(vwang)
we have achieved our aim by using this patch! I am not sure that i understood what you said "I'm not so sure why we need to make vibrate work but didn't explain what it vibrates for on screen?" Maybe Bug1150842 could explain why we need this feature. thank you !
This patch will only be a workaround. We will think of a formal solution if we have strong requirement in the future.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: