Skip to content

Notifications and background

  • FlutterLocalNotificationManager implements NotificationManager using flutter_local_notifications. The runtime uses it to notify users about app tasks. Your app can use the same manager for its own notifications.
  • BackgroundService keeps 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.

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

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.