Susurrus-LLC / langua

A suite of language tools
https://susurrus-llc.github.io/langua/
GNU Affero General Public License v3.0
44 stars 3 forks source link

Add PWA notices for caching and updating #12

Closed nai888 closed 6 years ago

nai888 commented 6 years ago

Review the create-react-app README's recommendations for creating a fully functioning progressive web app, and the offline behavior in particular.

Check out this page for help with notifying about available updates.

This code will be handled at around line 63 of registerServiceWorker.js.

Check out react-toastify as a possible way to handle the notifications themselves.

Langua Version

0.1.3

Desired Behavior

Add a notice for when the browser has cached the app and it can be accessed offline. Ideally, also notify users they can add Langua to the home screen of their mobile or tablet.

Add a notice when the server's version of Langua is different from the cached version, indicating that the user should refresh the page to load the newer version.

nai888 commented 6 years ago

Still need to: