PIXEL

Open phone’s Settings > Battery > Three dot menu (top right of screen) > Battery optimization > All Apps > Find Pedometer app in the list and tap it, and select “Not optimized”.