When there is no network connection, an offline page is shown
- Register SW: App should work offline
On install cache strategy is used for static files like index.html
,manifest.json
, robots.txt
, script.js
, offline.html
,,
- Cache: Demonstrate at least one cache strategy
Defer the installation Prompt and initiate it with the install-button in header
- Installation: Deffer Installation Prompt, initiate with button
- Paste generated public key from https://web-push-codelab.glitch.me/ and request permission with the subscribe-button
- Paste the generated JSON into https://web-push-codelab.glitch.me/ and test messaging in console output
- Push: Request permission with button and with own UI before native one. At least show in console a message when push is received
For messaging please look in browser console:
- When a todo is added, a message is sent to the service worker
- When a Todo is deleted, a message is sent to the service worker
- When a Todo is updated, a message is sent to the service worker
- Messaging: Demonstrate communication between SW and windows/tabs
- Fullscreen API is used
- Share API is used
- Other APIs: used two other APIs
In the project directory, you can run: