zerosonesfun / pwa
A Progressive Web App extension.
Installs: 732
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 1
Forks: 5
Open Issues: 0
Language:HTML
Type:flarum-extension
Requires
- flarum/core: >=0.1.0-beta.8 <0.1.0-beta.13
README
Turns Flarum into a basic progressive web app. If a user loses connection, an offline page will appear with a simple message alerting them that this app does not work offline. As of version 1.1, this PWA no longer attempts to cache pages. This is because it was discovered that, in certain browsers / on certain devices, the extra caching was causing users to have to manually refresh pages in order to complete tasks such as logging out or logging in. However, even without caching this is useful because it gives users another option: the ability to install your forum and open it in a standalone app window.
This is what you see and how to install in Chrome (on a desktop). Each browser and device will handle this differently.
Install instructions
Pre-install:
- Required: Add sw.js to the public root of your site (i.e. /public_html/, /home/, or whatever your public root is called).
- Required: Add site.webmanifest to the public root of your site (/public_html/, /home/, or whatever your public root is called).
- Optional: Edit the site.webmanifest file. Change the name of the app, where the app icons are located, and even the theme color and background color settings. Do not change the start url or scope unless you know what you're doing.
Install:
composer require zerosonesfun/pwa
Update:
composer update zerosonesfun/pwa