mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-13 06:32:03 +00:00
The server set the Home Screen badge only through the clear push sent for each logged dose, and that push is gone. A device whose last clear left a count (one forgotten dose, an update in the middle of the day) kept that number on the icon for good, since iOS never clears a web app's badge by itself. The worker now clears the badge once on activate. The badge handling in the push handler, the unused outstanding-dose counter and the test of a payload no server sends are removed, and the self-hosting guide no longer promises the clear push or the badge.