Slide 1

Slide 1 text

Web Push Notifications @manuelwieser

Slide 2

Slide 2 text

Web Push Notifications 1. What’s new? 2. Technological Overview 3. Demonstration 4. Browser Support

Slide 3

Slide 3 text

What’s new?

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

Web Push Protocol • RFC 8030 – Generic Event Delivery Using HTTP Push
 https://tools.ietf.org/html/rfc8030 • You can use the same code for Chrome and Firefox since mid 2016. • You no longer need a Firebase project, a gcm_sender_id, or an Authorization header. You no longer need a manifest.json. • Microsoft is co-authoring the RFC, so they will follow the standard.

Slide 7

Slide 7 text

Technological Overview

Slide 8

Slide 8 text

1 2 3 4 5

Slide 9

Slide 9 text

1 2 3 4 5

Slide 10

Slide 10 text

1 2 3 4 5

Slide 11

Slide 11 text

1 2 3 4 5

Slide 12

Slide 12 text

1 2 3 4 5

Slide 13

Slide 13 text

1 2 3 4 5

Slide 14

Slide 14 text

1 2 3 4 5

Slide 15

Slide 15 text

Formula • applicationServerKey • Service Worker • Subscription • Subscription Object • Push Message

Slide 16

Slide 16 text

Formula • webpush.generateVAPIDKeys() • navigator.serviceWorker.register() • serviceWorkerRegistration.pushManager.subscribe() • subscription.toJSON() • webpush.sendNotification()

Slide 17

Slide 17 text

STOP IT’S DEMO TIME! github.com/Lorti/web-push-notifications

Slide 18

Slide 18 text

Browser Support

Slide 19

Slide 19 text

Chrome • Service Workers ✅ • Push API ✅ • Notifications API ✅ • Web Push Protocol ✅ • Windows ✅ • macOS ✅ • Linux ✅ • Android ✅

Slide 20

Slide 20 text

Firefox • Service Workers ✅ • Push API ✅ • Notifications API ✅ • Web Push Protocol ✅ • Windows ✅ • macOS ✅ • Linux ✅ • Android ✅

Slide 21

Slide 21 text

Edge • Service Workers • Push API • Notifications API ✅ • Web Push Protocol ✅ • Windows • Windows Mobile

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

Safari • Service Workers ❌ • Push API ❌ • Notifications API ✅ • Web Push Protocol ❌ • macOS ✅ via Apple’s non-standard implementation • iOS ❌

Slide 25

Slide 25 text

LOL, NOPE!

Slide 26

Slide 26 text

ありがとう ございます Demo https://github.com/Lorti/web-push-notifications Slides https://manu.ninja/ @manuelwieser