geolocation – Configure sleep mode for a PWA?

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)?

Thank you!

PS: The gis.stackexchange.com community recommended me to ask this question here.