Photo goes here Vitor Alencar Desenvolvedor com foco em tecnologias novas e escaláveis, graduando em sistemas de informação,Co fundador do DEV I/O FOR , Google developer groups organizer e Organizado do Front-in Fortaleza @vitormalencar GURU-CE
Trust Is this site who they claim to be? Data integrity Has anyone tampered with this page? User privacy Can anyone see my browsing behavior? Keeping Users Safe
Service Worker Life Cycle • Adds app-like lifecycle to a page • Wakes up only when the OS says • Only responds to system events Activated Error Idle Active Terminated Install Register
Service Worker Life Cycle • Adds app-like lifecycle to a page • Wakes up only when the OS says • Only responds to system events Activated Error Idle Active Terminated Install Register
Service Worker Life Cycle • Adds app-like lifecycle to a page • Wakes up only when the OS says • Only responds to system events Activated Error Idle Active Terminated Install Register
Service Worker Life Cycle • Adds app-like lifecycle to a page • Wakes up only when the OS says • Only responds to system events Activated Error Idle Active Terminated Install Register
Add To Home Screen Was Broken Required user interaction Buried deep in menus Where would it start? Dependent on bookmark Would it work offline? Users didn't expect offline
Anatomy of a notification when: it's timely what: it's precise what & who: it's relevant It’s from people or sources that matter to me, which makes it personal.
Built on Service Workers /* ServiceWorker.js */ onpush = function(event) { var data = event.data.json(); var t = data.title; var opt = { body: data.body, icon: data.icon, tag: data.tag }; self.registration .showNotification(t, opt); }; End Point example.co m