Receive Certification Expiry Warning Notifications
A nightly edge function checks all active peer mentor certifications for upcoming expiry dates. Notifications are dispatched at configurable intervals before expiry (e.g., 60 days, 30 days, 7 days). The push notification includes the certification name, the expiry date, and a deep link to the certification status screen or course enrollment prompt. If the mentor's certification lapses without renewal, the system automatically suppresses their visibility in coordinator matching views. The notification must also appear as an in-app banner on the home screen for pending expiries.
User Story
Acceptance Criteria
- Given a peer mentor's certification expires in 30 days, when the nightly expiry check edge function runs, then a push notification is sent with the certification name and expiry date
- Given the push notification is tapped, when the app opens, then the user is navigated to the certification status screen showing the expiry date and renewal options
- Given the certification has already expired, when the evaluation runs, then the mentor's profile is flagged as inactive and suppressed from coordinator matching lists
- Given the user taps 'Enroll in renewal course' from the notification detail view, when navigation completes, then the course enrollment prompt is displayed
- Given a notification was sent at 60 days and another at 30 days, when 7 days remain, then a third notification is sent — but no additional notifications fire within the same threshold window
Business Value
HLF places high importance on certification currency as it is tied to mentors appearing on the organisation's public website. An expired mentor who is not notified in time risks being automatically hidden from the system, causing service disruption for their assigned contacts. Proactive expiry warnings protect both the mentor's status and the continuity of support for vulnerable contacts.
Components
- Certificate Expiry Notification Banner ui
- Certificate Expiry Notification Detail View ui
- Certificate Expiry Status Indicator ui
- Certificate Expiry Notification Orchestrator service
- Peer Mentor Visibility Suppressor service
- Course Enrollment Prompt Service service
- Certification Expiry Repository data
- Notification Record Repository data
- Certificate Expiry Check Edge Function infrastructure
- FCM Push Notification Sender infrastructure
- Certificate Expiry RLS Visibility Policy infrastructure
- Certification Expiry Nightly Cron Job infrastructure
- Certification Reminder Service service