Notifications and background
FlutterLocalNotificationManagerimplementsNotificationManagerusingflutter_local_notifications. The runtime uses it to notify users about app tasks. Your app can use the same manager for its own notifications.BackgroundServicekeeps sensing alive on Android with a foreground service (flutter_background). On iOS it does nothing.
Both need platform setup in your app: see Run in production.
Where in the repo
Section titled “Where in the repo”| File | What is in it |
|---|---|
infrastructure/services/local_notification_manager.dart |
FlutterLocalNotificationManager |
domain/services/notification_manager.dart |
The NotificationManager interface |
infrastructure/services/background_service.dart |
BackgroundService |
Notification setup
Section titled “Notification setup”The default notification controller used in CAMS is FlutterLocalNotificationManager, which uses the flutter_local_notifications plugin. It supports scheduling and receiving notifications while the app is in foreground, background, or terminated, but requires platform-specific setup.