Description
Describe the bug
When a battery check fails (either because the sensor is out of range or some other connectivity problem) it can cause the background download process to take a long time. This is more of an issue when there are multiple sensors, and the first sensor in the list is unavailable.
Pausing the sensor will stop the temperature download attempt, but the app will still try to contact the sensor to do a battery check which can take a long time to timeout due to the retry attempts. Pausing should probably also stop the battery check (or the battery check should be quicker).
To reproduce
Steps to reproduce the behaviour:
- Set up two sensors
- Move one out of range
- Try to pause the sensor that is out of range
- Observe the vaccines main page and see the out of range sensor still holding up the downloads (theoretically a sensor should be downloading approx every ~60s)
Expected behaviour
Downloads for the available sensors should not be interrupted
Proposed Solution
Make pausing a sensor also stop the battery check
Version and device info
- App version: 7.0.0 RC10
- Tablet model: Lenovo
- OS version: Android 8.1
Additional context
Think this is a bit of an edge case (and users can just remove the troublesome sensor) but still can be annoying.