I created a web application that plays a music playlist, and it works well on desktop browsers, as well as in Mozilla and Opera android. But when I play songs in Chrome browser in Android and I turn off the screen, it stops after playing the current song. And as soon as I turn on the screen, it starts loading the next song in line.
From my observations, I realized that the Google Chrome browser on Android disables javascript code execution if the screen is turned off until the screen wakes up again. Is there a way to prevent my specific library from stopping? Any approach or events?
Some of these questions are related to what I'm looking for: JavaScript dwells on the inactive tab of Chrome Chrome
There are so many WebApps that it doesnโt stop playing music. Do I need some permissions from the Google App Store?
source share