Want to run a PWA in the background?
Easy, just play music constantly, and the OS won't kill the app.
@Alex Gleason blew my mind with this hack!
Thread
Login to reply
Replies (10)
I play a video in minimized mode at work to keep my computer alive.
The same trick works for native apps as well, including iOS
π€―
Good for PWAs. For native apps, good for Testflight, but try getting past AppStore review with it.
Yeah I was wondering that too...
Might not even go through test flight...
Yeah don't bother. There's no hope. If you sneak it by App Store review once, then on some future update they'll zoink you. PWA best for now.
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.
πΆπΌπ΅βΎοΈ
View quoted note β
No. You both are fucking idiots. All of Jack's friends are fucking losers for being part of this bullshit!!!