I am currently making a PWA and the app has to be able to stay open in the background and keep doing a JavaScript loop. I couldn't find any good videos or articles on how to do this so I thought I might ask here. I heard I might need to do it via service worker? I am not too sure tbh.
Thanks In Advance!