Service Workers - Beyond The Cache (NDC Sydney)

8ec1383b240b5ba15ffb9743fceb3c0e?s=47 Phil Nash
September 19, 2018

Service Workers - Beyond The Cache (NDC Sydney)

Service workers are here to stay, they're live in (almost!) all the major browsers and all your favourite frameworks offer them out of the box for caching your application offline. This is a great start for building modern, resilient, progressive web applications. But only using the service worker's cache is like driving a sports car in 3rd gear at the most.

We'll dive into push notifications, background sync and other experimental service worker features, showing what they can be used for and how to integrate them in your app. Together we'll see how to make your web apps appier and your users happier.

--

Links:

The demo app: https://github.com/philnash/sms-messages-app

Push notification docs: https://developers.google.com/web/fundamentals/codelabs/push-notifications/
Web push libs: https://github.com/web-push-libs
UX of push notification permissions: https://developers.google.com/web/fundamentals/push-notifications/permission-ux
Permissions on the web suck: https://philna.sh/blog/2018/01/08/permissions-on-the-web-suck/

Background sync example: https://www.twilio.com/blog/2017/02/send-messages-when-youre-back-online-with-service-workers-and-background-sync.html

Experimenting with background fetch: https://philna.sh/blog/2017/07/04/experimenting-with-the-background-fetch-api/

8ec1383b240b5ba15ffb9743fceb3c0e?s=128

Phil Nash

September 19, 2018
Tweet