If you are using a Huawei device and you're experiencing issues such as missing data, or nothing being recorded at all, ignoring battery optimizations for Slopes should get things working as expected.
- Open the Settings app on your phone
- Go to Apps
- Tap on Settings
- Tap on Special Access
- Tap on Ignore Battery Optimization
- Tap on Slopes → Allow