No track recording when display is black

Since iOS13 does trails not record the track, when display is switched off. Other Apps like komoot and Maps3D are recording pretty well at the same time.
As soon as the mobile is unlocked and trails in the foreground than it continues to write the GPS data.