Closed Bug 812692 Opened 12 years ago Closed 10 years ago

[Clock] When the alarm rings, pressing the volume rocker should dismiss the alarm

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-basecamp:-)

RESOLVED DUPLICATE of bug 996092
blocking-basecamp -

People

(Reporter: sicking, Assigned: mcav)

References

Details

(Keywords: feature, Whiteboard: interaction, UX-P3 [p=3])

+++ This bug was initially created as a clone of Bug #810780 +++

From bug 810780 comment 7:

Alarms:
- When the alarm rings, pressing the volume rocker should dismiss the alarm.

This likely needs to be fixed in the alarm app somehow since the system app has no way of communicating to the alarm app that it should be silenced.

However the alarm app has no access to the events fired for the volume buttons currently.
Summary: [Sound Manager] Hardware Volume Keys should react to phone's current state → [Sound Manager][Alarm] Need alarm API support to dismiss the alarm from system app
Hi Alive,

I don't quite understand why we need Alarm API's supports here. The Alarm API is only in charge of setting alarm time, firing it on time and notifying apps through system message, which should have nothing to do with the ringing alarm dismissing. Isn't that completely a Gaia-end issue? I could be wrong. Please feel free to correct me. Thanks!
As Jonas said, we don't have a proper way to dismiss alarm from system app. System app doesn't know who is alarm app to dismiss or close when alarm sounds.
blocking-basecamp: ? → -
I think that's fine. The raison d'etre behind this bug ("When the alarm rings, pressing the volume rocker should dismiss the alarm.") is not must-have for v1.
Component: Gaia → Gaia::Clock
(In reply to Alive Kuo [:alive] from comment #2)
> As Jonas said, we don't have a proper way to dismiss alarm from system app.
> System app doesn't know who is alarm app to dismiss or close when alarm
> sounds.

All right, but I think it's a bit beyond the scope of what the Alarm API was designed for so I think we don't really have a good title here.
Component: Gaia::Clock → Gaia::System
Indeed, the Alarm API isn't involved here. Once the alarm app is making sound the Alarm API is out of the picture and all we have is normal usage of ab <audio> element.
Let's change the title back. ;)
Summary: [Sound Manager][Alarm] Need alarm API support to dismiss the alarm from system app → [Sound Manager][Alarm] Hardware Volume Keys should react to phone's current state
(In reply to Gene Lian [:gene] from comment #6)
> Let's change the title back. ;)

Gene, that title was coming from the original cloned bug.
Component: Gaia::System → Gaia::Clock
QA Contact: jshih
Summary: [Sound Manager][Alarm] Hardware Volume Keys should react to phone's current state → [Clock] When the alarm rings, pressing the volume rocker should dismiss the alarm
Priority: P1 → --
Whiteboard: interaction, UX-P3
I think this bug is already fixed. The volume manager receives the audio-channel-changed event, and the right audio channel volume is correctly changed.
(In reply to Andrea Marchesini (:baku) from comment #8)
> I think this bug is already fixed. The volume manager receives the
> audio-channel-changed event, and the right audio channel volume is correctly
> changed.

Nope. The mozChromeEvent is fired to system app, which doesn't know how to close the alarm.
This should remain opened until we have a better solution on delegating hardware button events.
QA Contact: jshih → fyen
Keywords: feature
Assignee: nobody → m
Status: NEW → ASSIGNED
Target Milestone: --- → 1.4 S2 (28feb)
Whiteboard: interaction, UX-P3 → interaction, UX-P3 [p=3]
Target Milestone: 1.4 S2 (28feb) → ---
Blocks: 996092
No longer blocks: 996092
Depends on: 996092
This is addressed in bug 996092. Pressing the volume rocker dismisses the alarm.

We're still waiting on direct hardware button access, so we had to work around the platform a bit by hackishly listening to audio volume change events, but for now it works well.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.