Went out today to sail, and tried it out.
On my phone, an Android 13 (Samsung S20), it ensured the phone wouldn't sleep while OpenCPN was tracking, but, if I turned the screen off, or changed to another app and forgot to go back to OpenCPN, the tracking paused.
When I got back to OpenCPN the tracking continued, but a straight line was drawn from the last point before I turned the screen off or switched to another app to my location.
So clearly it wasn't recording in the background.
Wonder if there is something I need to do in app privileges. Will
research that later when I have some time.