GPS turns off when screen goes black

What gives? I’ve done all the steps from pop up message. Running on an up to date Pixel 3

Did you grant app permission to access GPS data also when app runs in the background?

Where is that setting? Don’t see that listed in app, just the battery setting

Does your device run on Android 9 or 10? You can check application permission settings inside device applications list.