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

The web is getting pushy - 4Developers

The web is getting pushy - 4Developers

The battle between native and web rages on. The browsers are fighting hard to tear down the benefits that native developers have relied on since the inception of mobile platforms. Geolocation, sorted. Accelerometer, done. Performance, we'll come back to that. But one of the greatest draws for native developers has been push notifications, for the web, email alerts just don't cut it.

But now, new in browsers for 2015, is the Service Worker. Born out of the struggle to make the Appcache work for offline capable sites, it has also brought the advent of push notifications to the web. Through building up an example application live, you will learn how to implement the Service Worker to not only serve up an app when you're offline but enhance the online experience with push notifications.

The battle may continue, but the web is definitely pushing back.


Check out the code from the presentation: https://github.com/philnash/the-web-is-getting-pushy

Web Powered SMS Inbox with Service Worker: Push Notifications: https://www.twilio.com/blog/2016/02/web-powered-sms-inbox-with-service-worker-push-notifications.html

The Service Worker Cookbook - https://serviceworke.rs/
Web Push for Node.js - https://www.npmjs.com/package/web-push - https://github.com/marco-c/web-push
Google Developers - Your first push notifications web app - https://developers.google.com/web/fundamentals/getting-started/push-notifications/?hl=en

Phil Nash

April 11, 2016

More Decks by Phil Nash

Other Decks in Programming


  1. ES6

  2. Other resources • Push notifications and SMS - Twilio blog

    • The Service Worker Cookbook - https:/ /serviceworke.rs/ • Web Push for Node.js - npm - GitHub • Google Developers - Your first push notifications web app