Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeflutter_fgbg

Detects when the Flutter app goes to the background or foreground at the app level.

pub.devRemove
flutter_foreground_task

Implement and manage foreground services on Android and iOS platforms.

pub.devRemove
ScoresHealth6489 (best)
Maintenance2883 (best)
Quality91 (best)90
Popularity8693 (best)
Community3480 (best)
Compatibility100100
UsageDownloads (30 days)142k291k (best)
Likes182584 (best)
Pub points140 / 160150 / 160 (best)
GitHub stars95184 (best)
MaintenanceLatest release0.8.0, 8 months ago11.0.3, 2 months ago (best)
Major versions in 12 months0 (best)2
Contributors624 (best)
PublisherUnverifiedpravera.me
FitPlatformsAndroid, iOSAndroid, iOS
WASM-readyNoNo
KindPlugin (native code)Plugin (native code)
Code generationNoNo
Direct dependencies0 (best)3
LicenseMITMIT
Setup effortLowHigh
JudgementStrengths
  • Avoids false positives from native container changes like FaceID prompts
  • Provides both a reactive widget and an event stream
  • Includes ignoreWhile API to bypass specific events like image picking
  • Supports two-way communication between the background task and the main UI
  • Provides options to automatically resume the foreground service on boot or package update
  • Includes utilities for handling battery optimizations and notifications
Weaknesses
  • Can be triggered by actions like picking an image on newer Android versions that open external apps
  • Requires a clean build after adding to integrate native code
  • Requires manual configuration of platform-specific permissions, Gradle files, and Android Manifest services
  • iOS background execution is heavily limited by the operating system
Warnings
  • Native setup
  • Native setup
flutter_fgbg vs flutter_foreground_task: which Flutter package should you use? | pubscout