Progressive Web App: Service Workers, Push API, Fetch API, Web Push

This is an experimental progressive web app (PWA) which uses Service WorkersPush API, Fetch API, JavaScript ES6 Modules, and Web Push made possible by Web Push PHP.

This web app lets individuals subscribe to receive notifications on their device via a web browser. Notifications are almost identical to a notification you would receive on your device, through your favourite apps.

For this app, I scrape a lottery website four times a day to check when numbers are drawn. When a new number is detected, it’s stored in a database and a notification is sent out to individuals who subscribed to receive notifications on lottery draws.

Most of the API’s previously mentioned are relatively new and still being actively worked on. I expect that they will become mainstream very soon.

Try this app using your smartphone.

Link: Play Whe Results