Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Aggressive Web Apps at Web Directions Code

Phil Nash
August 02, 2018

Aggressive Web Apps at Web Directions Code

Push notifications on the web can be a force for good, but is that how they are coming across? We'll take a look at how to implement push notifications in Angular applications, from permissions to notification. Then we'll see how it's being done wrong and how to improve on that.

We'll then look at the notifications themselves, find out what the best kind of notifications are and how not to wind up with your app's, or the entire web's, notifications blocked forever.

--

Links:

Permissions on the web suck: https://philna.sh/blog/2018/01/08/permissions-on-the-web-suck/

Push notifications documentation: https://developers.google.com/web/fundamentals/push-notifications/

Discussion on requiring user input: https://github.com/WICG/interventions/issues/49
Permissions API spec: https://w3c.github.io/permissions/

Phil Nash

August 02, 2018
Tweet

More Decks by Phil Nash

Other Decks in Programming

Transcript

  1. Ketan Joshi @KetanJ0 Dear website, - I don't want you

    to post notifications to my desktop - I don't want to subscribe to your thing via a popup - I don't want you to know my location - Please stop autoplaying that video - I am angry and sad now 7:17 PM - May 13, 2018 31.2K 8,643 people are talking about this @philnash
  2. Timely noti cations "Daisy just sent you a message" "Your

    car is here" "You can check in now" @philnash
  3. Actionable noti cations "Daisy just sent you a message" "Your

    car is here" "You can check in now" @philnash
  4. Personal noti cations "Daisy just sent you a message" "Your

    car is here" "You can check in now" @philnash
  5. Firefox @firefox You know who loves push notifications? . .

    . yeah . . . We couldn't think of anyone either so we made it so you can deny sites from even asking if you want to receive them: techcrunch.com/2018/03/13/fir… 8:04 AM - May 23, 2018 5,373 1,272 people are talking about this Firefox can now block those annoying notification requests Virtually every random site you go to these days wants you to su… techcrunch.com @philnash