----- Original Message -----
From: "Wilson Page" <
wilso...@mozilla.com>
> PER NOTIFICATION CONFIGURATION
>
> There isn't currently a way for apps to take control over the alert tone, vibration on/off/pattern or (as above) LED color. One of the things I really liked about WhatApp/Telegram on Android is that I can choose the type of notification I receive from each of my groups/contacts. For busy groups I don't want my phone to vibrate/sound, but for one-on-one conversations, I do. AFAIK the FxOS platform doesn't offer developers this kind of control over a notification when it is created.
>
> VIBRATION PATTERNS
>
> I also noticed on Android that different apps have different vibration patterns. This means that when I feel the vibration in my pocket, I can (if familiar) tell which app wants my attention.
>
> Is this something we should be talking about?
Thanks for bringing this up Wilson. James Burke raised a bug concerning this about a year ago [1] and we have indeed been discussing this in the WHATWG [2][3]. Currently apps are able to control: vibration pattern, alert tone, whether or not the notification wakes the screen, and whether or not the "Clear all" button closes the notification in question [4][5]. However the user has no way to configure this on a per-app basis yet, and I think that would be a useful discussion to have.
Please also keep in mind that we have moved ahead of WHATWG here and these are experimental features. So in addition to giving more control to the user, we should also discuss what other behaviors should be configurable. LED (or whatever name we land on) seems to be the next target, but some other things that have been discussed are:
silent:
- Don't play sound or vibrate the phone. Possible use case, missed call notification, CMAS.
noList/transient:
- Fire this notification in the toaster only, but don't display it in the tray. Possible use case, chat program (eg. Skype) user just came online notification.
targetTime:
- Specify a datetime for when this notification applies. Possible use case, calendar reminders where the time in the tray can say "5 minutes from now" etc. Currently, the time in the tray only applies to when the notification was actually fired, which is confusing for calendar reminders.
squash:
- When replacing a notification, don't notify the user (through sound/vibration/toaster). Possible use case, email notifications which already get squashed could be configured to not annoy the user by constantly playing sounds/vibrating every time someone replies to a thread.
More ideas welcome!
Thanks,
Michael
1.)
https://bugzilla.mozilla.org/show_bug.cgi?id=912645
2.)
https://github.com/whatwg/notifications/issues/22
3.)
http://lists.w3.org/Archives/Public/public-whatwg-archive/2014Aug/0065.html
4.)
https://mxr.mozilla.org/mozilla-central/source/dom/webidl/Notification.webidl#72
5.)
https://bugzilla.mozilla.org/show_bug.cgi?id=1066385