Closed Bug 1169452 Opened 9 years ago Closed 9 years ago

feature request: support updatable (ongoing) notifications

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2.2 S14 (12june)

People

(Reporter: bwalker, Assigned: mikehenrty)

References

Details

(Whiteboard: [dependency: marketplace-partners])

some apps want to issue a notification and then update its content by issuing additional notifications without playing additional sounds. This is not currently possible with the existing "desktopNotification" API.
Blocks: 1169474
Whiteboard: [dependency: marketplace-partners]
We should be able to do this with the "silent" flag for the notification API.

https://developer.mozilla.org/en-US/docs/Web/API/notification/silent
Hamzata,

See comment 1 for Mike's suggestion; the "silent" flag for the notifications API seems to be the solution here. 

Thanks,
Didem
Flags: needinfo?(hdiallo)
Hi Michael, Didem,
That is great. But my understanding is that this wasn't implemented yet, is it?

Thanks,
Hamzata
Flags: needinfo?(hdiallo)
(In reply to Hamzata Diallo from comment #3)
> Hi Michael, Didem,
> That is great. But my understanding is that this wasn't implemented yet, is
> it?
> 
> Thanks,
> Hamzata

Ah you're correct, it is not implemented yet. But we can specify a null sound file which will achieve the same result. This can be done as part of bug 1169426.
Assignee: nobody → mhenretty
That sounds great!
Hamzata, you mentioned in the meeting today that you wanted to also suppress vibration. The silent flag, according to spec, suppresses both sound and vibration. Is this what you want?
Flags: needinfo?(hdiallo)
Yes, that's correct. Let's use that flag then.
Slight snag, in v2.1 we did not support behavioral flags like sound and vibrate. We will have to come up with a hack for this. I'm investigating this now.
fixed with https://github.com/mikehenrty/gaia/commit/a23f18127f01aec633bda7bea3e62d0bc9b67dba which is being rolled into bug 1169426.
Status: NEW → RESOLVED
Closed: 9 years ago
Flags: needinfo?(hdiallo)
Resolution: --- → FIXED
Target Milestone: --- → 2.2 S14 (12june)
(In reply to Michael Henretty [:mhenretty] from comment #9)
> fixed with
> https://github.com/mikehenrty/gaia/commit/
> a23f18127f01aec633bda7bea3e62d0bc9b67dba which is being rolled into bug 1169426.

which is in turn replaced by bug 1179243
You need to log in before you can comment on or make changes to this bug.