Overview
flt_worker is a Flutter plugin that enables scheduling and executing Dart background tasks on Android and iOS 13+. It leverages WorkManager on Android and BackgroundTasks APIs on iOS to ensure reliable task execution even when the app is terminated. Designed for developers needing periodic or delayed background processing, it supports constraints like network availability, battery level, and device charging. The plugin integrates seamlessly with Flutter's ecosystem and provides a consistent API across platforms.
Use cases
- Scheduling periodic data sync
- Executing delayed notifications
- Running background analytics collection
- Processing large files offline
- Maintaining background location tracking
Key features
- Cross-platform background task scheduling
- Support for Android WorkManager and iOS BackgroundTasks
- Task execution after app termination
- Battery and network-aware scheduling
- Simple Dart API with callbacks
Suitable for
- Apps requiring reliable background processing
- Developers building offline-first applications
- Projects needing scheduled maintenance tasks
- Apps with real-time data synchronization needs
- Teams using Flutter for native-like background functionality
Considerations
- Requires iOS 13+ for background support
- Limited control over exact execution timing on iOS
- Background execution may be restricted by system policies
- Needs proper permission handling on both platforms
- May impact battery life if misused