Low-battery notification for the Bridge's headset #110
Labels
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
SBDeveloper/medley#110
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What to build
When the headset on the Device's Bridge runs low, the Device shows a system notification, the way it already notifies about Tracks. The host already polls the Bridge Plugin for its status (
Core::bridge_status, #105). Reuse the poll that #108 adds to watch the signal rather than starting a second one.Notify once when the battery drops to 15% or below. Notify again only after it has been charged above that level (hysteresis, so a battery hovering around 15% does not spam). A Bridge that reports no battery (
-1) or is unplugged never notifies.Acceptance criteria
tests/common), no hardware neededBlocked by
Implemented on integration branch
automatic-handoff(merge446af8c), with code-review fixes in mergefcc0d8d. Lands on main when that branch is pushed and merged.