Monsoon PWA
Adds icons, a web manifest file and a service-worker file to make magento 2 a PWA.
Main Features
- Supports Magento Blank and Luma as well as Hyvä based themes.
⚠️ Hyvä is recommended to ensure fast performance.
- Makes Magento Installable as a PWA.
- A CMS Page can be configured for an offline page.
- Add to Home screen prompt
- Enable/Disable Offline Google Analytics.
- Utilises the Browser's Cache API.
- Service worker lifecycle management.
Installation
composer require monsoonconsulting/magento2-pwa
Configuration
To configure the module go to Stores > Configuration > Monsoon > PWA.
Offline Page
In Stores > Configuration > Monsoon > PWA select the page you wish to use as your offline notification page.
Alternatively use the default one provided by this module.
Customisation
In your Magento theme, override the images and PWA app details found in:
- Monsoon/Pwa/view/frontend/web/images/favicons
- Monsoon/Pwa/view/frontend/web/manifest.icon
For generating the correct icons there are useful tools such as a favicon generator and maskable icon editor.
Configure Service Worker
Most PWA features can be adjusted added in the service-worker file.
Simply override Monsoon_Pwa/view/frontend/templates/service-worker.js.phtml
in your theme to customise.