I wish there was a plug-and-play library and backend service I could use to wake up my PWA with a push notification whenever a nostr event (like a NWC request) is sent to a pubkey I register with the backend.

Please nostr.... someone build it so I can wake up cashu.me for sending zaps while the screen is turned off or the app is in the background....

Reply to this note

Please Login to reply.

Discussion

you can do it with web workers

Is it reliable? I've used services that claim to be able to do this and often they don't work once backgrounded.

well it depends on your implementation of the web worker haha, but usually you can expect that in modern web browsers most events will be triggered.

there's one thing to look out for tho, web workers are a pain to code for because browsers tend to have very strange caching rules for them by default

you maybe can, I CAN'T!

Ohhh we need that for Alby Go