This repository contains the code for the Sarrafex PWA Test.
1.Cleanup outdated caches
2.Proxied server side push notification api
3.Show Dashboard page as main page when user use pwa and show home page when user use browser tab
4.Offline fallback page
5.Startup splash screen for all devices
6.Custom PWA Worker
7.Shortcut pages for quick access
1- JavaScript
2- Next Js
3- Next-PWA
4- Web-Push
https://sarrafex-pwa-sample.vercel.app
$ yarn
WEB_PUSH_EMAIL=< Email Address >
WEB_PUSH_PRIVATE_KEY=< Your web push private key >
NEXT_PUBLIC_WEB_PUSH_PUBLIC_KEY=< Your web push public key >
NEXT_PUBLIC_PROXY_IP=< Your Proxy IP Address >
NEXT_PUBLIC_PROXY_PORT=< Your Proxy Port >
$ yarn vapid
$ yarn build
$ yarn start
⚡: if you want to get notification when using your local server do these steps below
chrome://flags/#unsafely-treat-insecure-origin-as-secure
http://<Your Local Host>:3999