© Carlos Rojas 2020
C. RojasBuilding Progressive Web Applications with Vue.js https://doi.org/10.1007/978-1-4842-5334-2_7

7. Background Sync

Carlos Rojas1  
(1)
Medellin, Colombia
 

There are scenarios when our users expect an app to react automatically during disconnection. If they do something in the app while they are offline, the system resumes the state when a connection is available. In these cases, Background Sync is useful to us.

Think, for a second, about a chat app. As a user, I hope that, if I have a few spare seconds, I can see the messages I get from friends and have time to answer each message, close the app, then continue on with my life. However, what if I’m in a place with flaky or no connectivity? I probably can’t answer the messages ...

Get Building Progressive Web Applications with Vue.js : Reliable, Fast, and Engaging Apps with Vue.js 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.