Receive Course Enrollment Prompt When Certificate Expires
When the expiry check detects that a peer mentor's certification has passed its expiry date, the system transitions from reminder notifications to an enrollment prompt notification. This notification uses higher urgency messaging and explains that the mentor is no longer visible on HLF's public website and cannot register activities until the certification is renewed. The course enrollment prompt service generates a deep-link to the appropriate renewal course in the Dynamics portal. An in-app modal or full-screen prompt is also shown on the next app open, requiring an explicit action (enroll or dismiss with explanation). The coordinator is also notified separately about the expiry.
User Story
Acceptance Criteria
- Given a peer mentor whose certification expired yesterday, When the nightly scheduler runs, Then an expiry notification is sent via FCM with messaging indicating they are no longer active
- Given a peer mentor whose certification has expired, When they open the app, Then a full-screen enrollment prompt is presented explaining their inactive status and offering 'Enroll in Renewal Course' and 'Remind Me Later' actions
- Given the peer mentor taps 'Enroll in Renewal Course', When the action triggers, Then the Dynamics portal course enrollment page opens via deep-link
- Given the peer mentor taps 'Remind Me Later', When the action triggers, Then the prompt is dismissed but reappears after 24 hours on next app launch
- Given a peer mentor's certification has been expired for more than 30 days, When the scheduler runs, Then further push notifications are suppressed to avoid harassment, but in-app prompts continue
- Given the coordinator has been notified of the expiry, When they view the peer mentor's detail screen, Then the certification expiry badge shows 'Expired' and the mentor's active status is suppressed from public-facing views
Business Value
Expired peer mentors remaining visible on HLF's website creates a trust and compliance risk. Automatically transitioning from reminders to active enrollment prompts at the point of expiry minimizes the window during which an uncertified mentor appears active, protects HLF's reputation, and creates the clearest possible path for the mentor to regain their status.
Components
- Course Enrollment Prompt Service service
- Certificate Expiry Notification Orchestrator service
- Certificate Expiry Check Edge Function infrastructure
- FCM Push Notification Sender infrastructure
- Peer Mentor Visibility Suppressor service
- Certification Management Service service
- Dynamics 365 Portal API Client infrastructure
- Notification Deep Link Handler service
- Certification Expiry Repository data