The same way it does in Google maps, and in Waze. But I can’t seem to find a setting on the phone that will do that for any other apps, and I can’t find any information through internet searches that leave me that direction.
As usual, they show me what they think I ought to be looking for, which is how to lock an app. Not the question I asked, Google (or anybody else).
Is it impossible or does anybody have a tip? Not looking to go down the unlocking my phone root access path either. It’s not that big a deal, I could turn on trusted devices, or extend unlock, but those aren’t the solutions I’m looking for.
you can use coffee to keep your phone awake (also available on f-droid)
hope this helps