octokatherine / word-master

A Mastermind-like word guessing game
MIT License
381 stars 240 forks source link

Make PWA #14

Open octokatherine opened 2 years ago

octokatherine commented 2 years ago

Make word master a PWA for offline play

kishore881 commented 2 years ago

👋Hi.. I've done some research on PWA for React apps. It seems to be done with service workers, which can cache the resources required for the app, making them available offline. Based on my research, this is what I think the necessary steps are

This is what the dev tools showed when I tried this with the current manifest, ⚠️s on Installability of PWA

Manifest

The third ⚠️ says no service worker found, even though an SW is active. It has something to do with scope and start_url in the manifest.

Service Workers

So updating the manifest seems to be the first step. Since in index.html, all resources are hardcoded to be pulled from this repo. So, updating that would make it easier to work on service-worker and test rapidly in dev env.

Let me know what you think.