on-internet
← Community

PWA handle notifications without push

Stack Overflow ·

I have this simple management app that I built, and now I want to add notifications to it. However, I didn't want to use any push service. I'm trying to do a simple fetch to my API every 15 minutes and find if any new notifications are available then I show them to the user and log what has been shown using my service work to indexdb, so that I don't swns the same notification twice. It sounds fairly simple as I don't have any need for instant notification. Here is my attempt : File sw.js: importScripts('/rss/umd.js'); importScripts('https://storage.googleapis.com/workbox-cdn/releases/5.1.2/wo

Comments

Sign in or sign up to comment and upvote.

No comments yet.