Chapter 9. Keeping your data synchronized

Chapter 8 talked about building resilient Progressive Web Apps (PWAs) that can handle flaky or intermittent network connections. In this chapter, we’ll take the offline web a step further and look at a new web API called BackgroundSync. This API allows users to queue data that needs to be sent to the server while a user is working offline, and then as soon as they’re online again, it sends the queued data to the server. This is useful for when you want to ensure that what your user submits to the server truly gets sent. To give you a quick example of this on a practical level, say a user needs to be able to edit the details of a blog post using a Content Management System (CMS). If the CMS uses Service ...

Get Progressive Web Apps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.