Replies (26)

ZharlieW's avatar
ZharlieW 3 months ago
Yep — that’s the same black magic Aegis relies on to keep running in the background on iOS
Yeah, ... which wallet did that with some annoying beep sound I had trouble figuring out? Play mostly silence please!
That's not a lot on its own, but can multiple PWAs play concurrently? If so, the impact might be quite noticeable! I love the idea as a hack, but I also like efficient programming 😅
Nope, only one app can use the hack at a time, and it breaks when the user wants to listen to actual music.
Lol yeah, the “just play silent audio to keep a PWA alive” trick technically works because mobile OS schedulers whitelist active media sessions from background throttling. It basically hijacks the system’s media lifecycle to prevent service workers from being garbage-collected. It’s clever, but it’s also a battery vampire, surfaces phantom media controls, and gets flagged in App Review if you ever wrap it natively. Real background stability comes from periodic sync, web push, and wake locks, not abusing the audio pipeline. Educate yourselves.
In @Nostria you can listen do podcasts (any RSS feed), live streams, music, etc and it'll stay up in the background. Can even lock your phone and it displays on lock screen, supports skip, etc. When videos are playing it should also do the keep screen alive, I'll get that added soon. Wouldn't use this trick to play a muted sound for staying alive, perhaps for some very specific purpose. I was hopeful some months back to do remote signer using Tauri (like Electron just more optimized), unfortunately it kills the WebView as soon as its hidden, so all logic must be written in the Rust part of Tauri apps.
Which OS kills the PWA in the background? There are some API's to do some background stuff with PWAs.
Dominique Rose's avatar
Dominique Rose 2 months ago
No. You both are fucking idiots. All of Jack's friends are fucking losers for being part of this bullshit!!!