Skip to main content

Notification Settings

Notification configuration and management.

Notification Types

System Notifications

  • System updates
  • Maintenance alerts
  • Security alerts
  • Feature announcements

Activity Notifications

  • New messages
  • Campaign updates
  • Grievance status changes
  • Task assignments

Reminder Notifications

  • Upcoming events
  • Pending tasks
  • SLA deadlines
  • Follow-ups

Channel Configuration

Email Notifications

// Enable/disable email notifications
$user->notification_preferences = [
'email' => [
'enabled' => true,
'types' => ['system', 'activity', 'reminders'],
],
];

SMS Notifications

// SMS notification settings
$user->notification_preferences = [
'sms' => [
'enabled' => true,
'types' => ['urgent', 'reminders'],
],
];

Push Notifications

// Push notification settings
$user->notification_preferences = [
'push' => [
'enabled' => true,
'types' => ['activity', 'reminders'],
],
];

Quiet Hours

Configuration

// Set quiet hours
$user->quiet_hours = [
'enabled' => true,
'start' => '22:00',
'end' => '08:00',
'timezone' => 'Asia/Kolkata',
];

Notification Templates

Custom Templates

  • Welcome message
  • Password reset
  • Status updates
  • Reminders

Best Practices

  1. Respect Preferences: Honor user preferences
  2. Opt-out Easy: Make it easy to unsubscribe
  3. Frequency Control: Allow frequency control
  4. Channel Choice: Let users choose channels
  5. Quiet Hours: Respect quiet hours