mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Previously sourceAppId, title, and body were left null and sourceName was the literal "ALARMCLOCKRECEIVER", causing Xiaomi watches to drop the alarm-fire notification (the watch falls back to Gadgetbridge's own package id which is not on the app allowlist, and the spec has nothing to display). Plumb the captured clock-app package (com.android.deskclock or com.google.android.deskclock) through sendAlarm so: - sourceAppId carries the real clock package - sourceName is the resolved application label (NotificationUtils.getApplicationLabel) - title = "Alarm" (R.string.menuitem_alarm) - body = current time formatted via DateFormat Strict improvement for all device families; Huami/ZeppOs previously also displayed the alarm with empty title/body.