OnePlus
On OnePlus phones with Android 6 or higher go to Android Setup → Battery → Battery optimization → All apps → Sportractive → Don't optimize
On some phones you might find the "Battery optimization" on the "Battery" page in the options menu (3 dots top right corner).