Foreground Notification Handler
Component Detail
Service Layer
medium complexity
mobile
1
Dependencies
0
Dependents
1
Entities
0
Integrations
Description
Flutter-side service using flutter_local_notifications to display notifications when the app is in the foreground. Bridges the firebase_messaging onMessage stream to local notification display and routes tap actions to the correct screen.
foreground-notification-handler
Responsibilities
- Listen to firebase_messaging onMessage stream for foreground payloads
- Display local notification banners via flutter_local_notifications
- Handle notification tap and route user to relevant screen
- Maintain notification unread count badge on the bottom navigation bar
Interfaces
initialize() → Future<void>
handleForegroundMessage(RemoteMessage message) → void
onNotificationTapped(NotificationResponse response) → void