Closed Bug 1150842 Opened 6 years ago Closed 6 years ago

[FFOS2.0][Woodduck][SCB]CBC notification with pop up and tone alert + vibrate in CHILE

Categories

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

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1154577

People

(Reporter: sync-1, Unassigned)

References

Details

Attachments

(8 files)

3.01 MB, application/zip
Details
18.16 KB, image/x-png
Details
1.23 MB, application/vnd.openxmlformats-officedocument.wordprocessingml.document
Details
77.27 KB, application/octet-stream
Details
3.18 MB, application/zip
Details
531.58 KB, image/png
Details
366.74 KB, image/x-png
Details
4.07 KB, application/zip
Details
Dear Mozilla,
 
 We have a new CBC requirements from the Chilean government,
 
 One of the problem we have to deal with is Vibrate;
 When the emergency CB message is coming, the phone have to vibrate with the sound notification;
 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
 
 We need to keep the phone vibrating no matter the the screen light on or off
 Could you please help to solve this issue ?
 
 thank you !
 
 
 +++ This bug was initially created as a clone of Bug #312915 +++
 +++ This bug was initially created as a clone of Bug #312913 +++
 
 Created an attachment (id=234697)
 Latest Requirements
 
 PROBLEM DESCRIPTION:According the latest CBC requirements from the Chilean government the phones must comply the following reqs:
 
 1.	Pop up containing displaying the whole SMSCB content.
 2.	Up to 90 characters at least
 3.	Title “Alerta de Emergencia” with time and date on the header of the popup
 4.	Automatic storage of all SMSCB messages, saving at least the last 10
 5.	Sound notification different from any other notification. It MUST loop until interrupted by the user.  User should not be able to disable the sound notification from profiles or any other menu. Tone is defined by ATIS/TIA J-STD 100, point 7.1
 6.	Always vibrate with the sound notification. If the current profile is silent it should ALWAYS vibrate. Vibration pattern is defined by ATIS/TIA J-SDT 100, point 7.2
 7.	Screen must light up as soon as the SMSCB is received and it should turn off 10 seconds later if no user interaction is performed. If the user presses any key the screen will light up again. This does not interfere with point 5 or 6, and sound/vibration should only stop when user disregards the popup message
 8.	Default SMSCB channels 919 and 921 must be enabled and should not be customizable or editable in any way by the end user
 
 EXPECTED BEHAVIOUR:
 
 The phone must comply the requirements detailed above.
 
 STEPS TO REPRODUCE:
 
 ++++++++++ end of initial bug #312913 description ++++++++++
 ++++++++++ end of initial bug #312915 description ++++++++++
 
 		
 
  DEFECT DESCRIPTION:
 
  REPRODUCING PROCEDURES:
 
  EXPECTED BEHAVIOUR:
 
  ASSOCIATE SPECIFICATION:
 
  TEST PLAN REFERENCE:
 
  TOOLS AND PLATFORMS USED:
 
  USER IMPACT:
 
  REPRODUCING RATE:
 
  For FT PR, Please list reference mobile's behavior:
Attached image 时间显示错误
Attached file Latest Requirements
Attached file Alert tones
Attached file mtklog7g23-8
Attached image date部分函数说明
Attached file carrier_info_notifier
Hi Mozilla,

What is the latest status about this issue ?

Thank you !
This issue is belong to [FFOS2.0][Woodduck]
Summary: CBC notification with pop up and tone alert + vibrate in CHILE → [FFOS2.0][Woodduck][SCB]CBC notification with pop up and tone alert + vibrate in CHILE
Hi Gary,
Could you provide some suggestion about:
"How to keep the phone vibrating no matter the the screen light on or off?"
Thanks!
Flags: needinfo?(gchen)
Hi all,
   In this scenario, I'd suggest keep screen on until user close the pop-up notification and it would make sure device will be triggered vibration when CBC was occured.
 Please refer to 'requestWakeLock API' as below.
 [1]https://developer.mozilla.org/en-US/docs/Web/API/Navigator/requestWakeLock#Specification

 Thanks.
Flags: needinfo?(gchen)
Blocks: Woodduck
Hi Gary,

When the screen light off, vibration is inactive, but some other functions are active, for example playSequence;
Could you tell me why do we design like that ?  Thank you !

var sequence2 = [[853, 960, 1950], [0, 0, 100]];
TonePlayer.setChannel('notification');
TonePlayer.playSequence(sequence1);
(In reply to xiongqin.bi from comment #13)
> Hi Gary,
> 
> When the screen light off, vibration is inactive, but some other functions
> are active, for example playSequence;
> Could you tell me why do we design like that ?  Thank you !
> 
> var sequence2 = [[853, 960, 1950], [0, 0, 100]];
> TonePlayer.setChannel('notification');
> TonePlayer.playSequence(sequence1);

Are u talking about vibration or tone?
I don't think above code relative to vibration, and I also do some experiential, the result shows vibration is inactive when user turn screen off during the phone call.
(In reply to comment #6)
 > Comment from Mozilla:(In reply to xiongqin.bi from comment #13)
 > > Hi Gary,
 > > 
 > > When the screen light off, vibration is inactive, but some other functions
 > > are active, for example playSequence;
 > > Could you tell me why do we design like that ?  Thank you !
 > > 
 > > var sequence2 = [[853, 960, 1950], [0, 0, 100]];
 > > TonePlayer.setChannel('notification');
 > > TonePlayer.playSequence(sequence1);
 > 
 > Are u talking about vibration or tone?
 > I don't think above code relative to vibration, and I also do some
 > experiential, the result shows vibration is inactive when user turn screen off
 > during the phone call.
 > 
 
 I want to know why we have to disable the vibrate when when user turn screen off;
 Why do we design like that ?
In our current scope, we don't have any user story need to vibrate when screen is off, so this is why current design.
But if you strongly want this feature, you can file a bug and discuss with owner and contribute it back to mozilla.

Thanks.
(In reply to GaryChen [:GaryChen][:PYChen][:陳柏宇] from comment #16)
> In our current scope, we don't have any user story need to vibrate when
> screen is off, so this is why current design.
> But if you strongly want this feature, you can file a bug and discuss with
> owner and contribute it back to mozilla.
> 
> Thanks.

Hi Gary,

I have filed a new bug1154577 for solving the problem of vibrate.
could you please assess the risks and if we can implement in  [FFOS2.0][Woodduck] ?

thank you!
Let's dup this to bug 1154577 and move discussion there. Thanks!
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 1154577
You need to log in before you can comment on or make changes to this bug.