foreground_background_manager 1.0.0 copy "foreground_background_manager: ^1.0.0" to clipboard
foreground_background_manager: ^1.0.0 copied to clipboard

A production-ready Flutter plugin for foreground/background detection, Android foreground services, background task scheduling, and lifecycle management.

1.0.0 #

  • Initial production release.
  • App lifecycle detection via WidgetsBindingObserver.
  • lifecycleStream, onForeground, onBackground, onAppKilled, onNotificationClick.
  • Android foreground service (FBMForegroundService) with:
    • START_STICKY for OS-level auto-restart.
    • AlarmManager backup restart for aggressive OEMs (Xiaomi/Huawei/Samsung).
    • onTaskRemoved handling for user swipe-kill.
    • FBMBootReceiver for auto-start after device reboot.
    • WakeLock to keep CPU active.
    • stopWithTask="false" declared in manifest.
  • Background task scheduling: WorkManager (Android) + BGTaskScheduler (iOS).
  • Permission handler: notifications, battery optimization, iOS background refresh.
  • FBMLogger with configurable level and external log sink.
  • Full Dart null safety, Dart 3 / Flutter 3.10+.
  • Complete example app with dark glassmorphism UI.
  • Full Android + iOS project files in example/.
  • Unit test suite (20+ tests).
1
likes
140
points
16
downloads

Documentation

API reference

Publisher

verified publishersanjaysharma.info

Weekly Downloads

A production-ready Flutter plugin for foreground/background detection, Android foreground services, background task scheduling, and lifecycle management.

Homepage

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on foreground_background_manager

Packages that implement foreground_background_manager