FLUTTER ECOSYSTEM

background_fetch

Periodic callbacks in the background for both iOS and Android. Includes Android Headless implementation.

Latest version
1.7.0
30-day downloads
84.2K
Likes
1.3K
Pub points
155

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

A Flutter plugin enabling periodic background execution on both Android and iOS, allowing apps to perform tasks like syncing data or fetching updates even when the app is closed. It supports Android's Headless JS mode for reliable background processing and provides consistent callbacks across platforms. Designed for developers needing reliable background activity without relying on platform-specific workarounds.

Use cases
  • Background data sync
  • Periodic task execution
  • Push notification handling
  • App state maintenance
  • Location tracking
  • Offline data updates
Key features
  • Cross-platform support (Android & iOS)
  • Android Headless implementation
  • Configurable background intervals
  • Persistent background execution
  • Event-driven callback system
  • Low battery and power optimization
Suitable for
  • Apps requiring regular background updates
  • Data-intensive applications
  • Offline-first mobile apps
  • Tracking or monitoring services
  • Background task automation
Considerations
  • Requires background permission on Android
  • May impact battery life
  • iOS background execution limited by system policies
  • Needs proper configuration for headless mode
  • Background fetch may be throttled by OS
  • Requires testing on real devices for reliability
Supported platformsAndroidiOS

Install package

flutter pub add background_fetch

Categories

Source repository

Related projects