MEDIUM story-scenario-based-engagement-push-notifications-peer-mentor-003 5 pts

User Story

As a Peer Mentor (Likeperson)
I want to open the notification preferences screen and control which scenario-based notification types I receive and through which channel (push, in-app, or both)
So that I can tailor my notification experience to match my working style without being overwhelmed by prompts

Acceptance Criteria

  • Given the mentor navigates to notification preferences, When the screen loads, Then all scenario notification types are listed with their current push and in-app toggle states correctly reflecting stored preferences
  • Given the mentor toggles off push notifications for the inactivity reminder scenario, When the scenario evaluation edge function next runs and finds an inactivity condition for that mentor, Then no FCM push notification is sent but an in-app notification record is still created if in-app is enabled
  • Given the mentor toggles off all channels for a scenario type, When the condition for that scenario is met, Then no notification of any kind is created for that scenario type for that mentor
  • Given the mentor saves their preferences, When they force-close and reopen the app, Then the preference toggles reflect the previously saved state
  • Given the preferences screen is open, When the mentor has multiple FCM tokens (multiple devices), Then preference changes apply across all devices for that user account

Business Value

Giving peer mentors control over notification frequency prevents notification fatigue, which is a leading cause of users disabling all notifications entirely. Respecting autonomy increases long-term engagement and reduces the risk of mentors opting out of the entire communication system.