Keeping users notified about the updates of your application is a good practice because they will always know that the app is being maintained and improved.
Working with PWA, you have access to features such as creating a native mobile application, allowing the installation of your application on a mobile device.
When an update is released, we need to inform our users about it and update the currently installed code.
In this recipe, we will learn how to use the service worker life cycle to register the application installation and use it to notify the user when there is a new update and apply the new updated version.
Getting ready
The prerequisite for this recipe is Node.js 12+.
The Node.js global objects that are required are as follows:
- @aws-amplify/cli
- @quasar/cli
To start adding custom update notifications, we will continue with the project that was created in Transforming the application into a PWA recipe.
How to do it...
Follow...