# 24. Implement iOS notification service

meta:
  id: native-business-logic-migration-24
  feature: native-business-logic-migration
  priority: P1
  depends_on: [native-business-logic-migration-15]
  tags: [implementation, ios, notifications]

objective:
- Implement push and local notification service for iOS

deliverables:
- NotificationService.swift
- NotificationManager.swift
- NotificationPreferencesStore.swift
- Notification extension (if needed)
- Badge management

tests:
- Unit: Test notification configuration
- Unit: Test permission handling
- Integration: Test notification delivery

acceptance_criteria:
- Push notifications received
- Local notifications scheduled
- Badge count updated
- Notification categories working
- Preferences respected

validation:
- Test with Pusher.app
- Verify in Settings > Notifications

notes:
- Use UserNotifications framework
- Implement notification categories
- Handle foreground/background differently
