Go to file
2018-06-25 14:19:45 +02:00
_config First commit 2018-06-24 15:51:50 +02:00
resources/js Service worker 2018-06-25 14:19:45 +02:00
src Service worker 2018-06-25 14:19:45 +02:00
.editorconfig First commit 2018-06-24 15:51:50 +02:00
.gitignore First commit 2018-06-24 15:51:50 +02:00
composer.json Service worker 2018-06-24 18:14:41 +02:00
LICENSE First commit 2018-06-24 15:51:50 +02:00
README.md Service worker 2018-06-25 14:19:45 +02:00
service-worker.js Service worker 2018-06-25 14:19:45 +02:00

SilverStripe Progressive Web App

Tools to add progressive web app functionality to your silverstripe website

Installation

composer require pixelspin/silverstripe-progressivewebapp

Usage

Install the module, run dev/build and fill in the settings in the siteconfig Create a symlink at the root of you website to vendor/pixelspin/silverstripe-progressivewebapp/service-worker.js Place the link to the manifest file () in the head of your pages and add the color meta data as well () Include the js (Requirements::javascript('pixelspin/silverstripe-progressivewebapp:resources/js/progressivewebapp.js');)

Todo

  • Add "add to homescreen" prompt
  • Add offline support
  • Create an you are offline page
  • Improve documentation