First of all I do not know the difference between "sleep mode" and "standby", so I am most likely using the wrong term in the following problem description:
I build myself a little PWA that tracks my routes with OpenLayers. It works fine so far, but at some point the recording of a track is interrupted. I assume this is due to the automatic sleep mode, which "turns off" Chrome and probably therefore also "navigator.geolocation".
Is there any chance to let my PWA and navigator.geolocation continue doing their work when Android is in sleep mode? And if so, is there any way to activate that setting via the PWA and without going into "Settings -> ... -> ..." (if that is at all an option)?
PS: The gis.stackexchange.com community recommended me to ask this question here.
PPS: A "PWA" ("Progressive Web App"), in short, is nothing else but a web application that looks and behaves like a "real" app. Even though it is run in a browser (in my case I only focus on Chrome), it can be used offline via service workers, the UI does not show the browser's address bar and some things more. By using all the modern browser APIs it is possible to create an app without having to go through the app store (even though a PWA could be registered as an app in the app store, too).