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

RESOLVED WORKSFORME

Status

P2
normal
RESOLVED WORKSFORME
4 years ago
4 years ago

People

(Reporter: sync-1, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

4 years ago
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)
Created attachment 8592689 [details] [diff] [review]
patch to make vibrate work when screen is off

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)

Comment 3

4 years ago
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 !

Updated

4 years ago
Duplicate of this bug: 1150842
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
Last Resolved: 4 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.