WIP: new-activity notification #231

Draft
trentlarson wants to merge 80 commits from notify-api into master
Showing only changes of commit 1cd329c720 - Show all commits

View File

@@ -585,6 +585,10 @@ export async function refreshNotifications(): Promise<void> {
return;
}
// Full replacement: clear prior scheduled notifications before applying backend schedule.
// (Plugin API name is cancelAllNotifications; equivalent intent to "clearAllNotifications".)
await DailyNotification.cancelAllNotifications();
// Apply backend schedule to the native scheduler as recurring notifications.
// The plugin's schedule API is cron/clockTime-based (recurring), so we map
// the backend timestamps to clockTime (HH:mm) schedules.