I am making a webpage to track a vehicle and I want it to keep running a specific JavaScript code even when the screen of the device is turned off. I already tried to achieve this with WebWorkers and requestIdleCallback function, however didn't have much success.
Any idea or suggestion on how to achieve this ? Thanks in advance,