News for hackers. Stuff that matters.
Re:Reducing notification permission prompt spam in Firefox by bitt on Monday April 01, 2019 @11:38PM (#19550860)
Websites should not ask users for permission notifications. It only annoys the people using it. It is a bad idea!

If users are interested enough in your content, they will find a way to opt-in for notifications like email; an opt-in for notifications button or even RSS. Why would website owners assume that users want to get notifications only after 5 seconds of visiting a random site?

Re:Reducing notification permission prompt spam in Firefox by jacoblambda on Monday April 01, 2019 @11:41PM (#19550876)
Some of them do have legitimate uses, like chat apps (messages.android.com for example). Otherwise though I do agree that they are a fairly bad idea.
Re:Reducing notification permission prompt spam in Firefox by valtism on Tuesday April 02, 2019 @01:38AM (#19551349)
Even then, notification permission should not be requested without some sort of prior input from the user. A simple red bell icon with the hover text "enable notifications" would work so much better than the user being assaulted with the dialogue box right away.

It really is a shame to see how terribly these permission requests have been abused, especially by news sites. I see this is a push for engagement by management, and not sufficient pushback from developers against this dark pattern.

This is not a difficult feature to implement well, and we should know how to do it properly after years of mobile permission request design.

Re:Reducing notification permission prompt spam in Firefox by beatgammit on Tuesday April 02, 2019 @09:40AM (#19553925)
Yeah, it should require user interaction to trigger the prompt. In fact, some of the better websites do this already.

This should be the same for nearly everything, like:

- playing video/audio automatically - location access - direct GPU access

In fact, it would probably make sense to include all scripting (JavaScript and web assembly).

To make this suck less, the website should be able to request multiple permissions at once, with each permission able to be granted individually and websites able to put a short reason why each is being requested. Those permissions should show up in an easy to use menu for each site, like the TLS info button. Perhaps that same menu is the only way to enable/disable, so no popups, and all permissions are disabled by default.

Re:Reducing notification permission prompt spam in Firefox by jdsully on Monday April 01, 2019 @11:48PM (#19550922)
Yea gitter is the only website I've given this permission to. It makes the user experience much better and so far they haven't abused it.
Re:Reducing notification permission prompt spam in Firefox by gpm on Tuesday April 02, 2019 @12:04AM (#19550999)
I'd add lichess.org as an example of well used notifications - telling you the opponent moved.
Re:Reducing notification permission prompt spam in Firefox by Zarel on Tuesday April 02, 2019 @03:17AM (#19551762)
Pokémon Showdown uses it for both – telling you your opponent moved, and message notifications when used as a chat app.

It doesn't ask for the permission until you start a game or send a private message, though. I think the original version of the spec required an interaction before the permission prompt when I implemented it – I'm surprised the restriction was removed.

Re:Reducing notification permission prompt spam in Firefox by bitt on Monday April 01, 2019 @11:47PM (#19550921)
There are certainly a few legitimate use cases. There should be an enable desktop notifications button or something similar in those cases.
Re:Reducing notification permission prompt spam in Firefox by 43920 on Tuesday April 02, 2019 @12:43AM (#19551163)
I almost wonder if sites are hoping people will enable notifications by accident, and then read the content after getting notified. I know at least a few people who've clicked the "allow" button by mistake, and then couldn't figure out how to turn the notifications off.
Re:Reducing notification permission prompt spam in Firefox by ptaipale on Tuesday April 02, 2019 @12:56AM (#19551207)
That's certainly the logic, no doubt about it.
Re:Reducing notification permission prompt spam in Firefox by ptaipale on Tuesday April 02, 2019 @12:46AM (#19551179)
A do appreciate that browsers provide a standard way to ask for these permissions. For instance, I deny most of the "know your location" queries, but it is not infrequent that I do wish to use a Web service that asks to know where I am.

Pop-up is a bad way, the above proposal for (admittedly some more clutter) buttons in address bar is better.