Files
daily-notification-plugin/android/plugin
Matthew Raymer 59cd975c24 fix(worker): prevent duplicate notifications from prefetch
Add duplicate checking in handleSuccessfulFetch() to ensure one prefetch
creates at most one notification per scheduled time. This prevents prefetch
from creating duplicate notifications when a manual notification already
exists for the same time.

- Check existing notifications before saving prefetch-created content
- Skip notification creation if duplicate found (within 1 minute tolerance)
- Add null check for fetcher in scheduleBackgroundFetch() with error logging
- Log skipped duplicates for debugging

Ensures one prefetch → one notification pairing and prevents duplicate
notifications from firing at the same time.
2025-10-30 10:02:54 +00:00
..