* Progressive Web Apps
progressive-web-apps-roes-moosmann-gdg-hamburg-10-2016
progressive-web-apps-roes-moosmann-gdg-hamburg-10-2016
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Push<br />
Service<br />
{<br />
}<br />
"endpoint": "https:// ",<br />
"keys": {<br />
"p256dh": " ",<br />
"auth": " "<br />
}<br />
Application Server<br />
navigator.serviceWorker.ready.then(registration => {<br />
return registration.pushManager.subscribe({ userVisibleOnly: true });<br />
})<br />
.then(pushSubscription => {<br />
// send pushSubscription to application server<br />
});