FLUTTER ECOSYSTEM

flutter_foreground_plugin

A foreground service plugin for Flutter. Support only Android (support Oreo). iOS not support yet.

Latest version
0.8.0
30-day downloads
61
Likes
52
Pub points
150

Package Overview

Selection guidance generated from public package information. For reference only.

Overview

A Flutter plugin that enables foreground service functionality on Android, specifically supporting Android Oreo and above. It allows apps to run background tasks with a persistent notification, ensuring continued operation even when the app is not in the foreground. The plugin is designed for use cases requiring long-running operations such as location tracking, music playback, or file downloads. Currently, iOS support is not available. It integrates seamlessly with Flutter's platform channel and provides a simple API for starting and stopping foreground services.

Use cases
  • Background location tracking
  • Long-running file downloads
  • Music playback in background
  • Real-time data synchronization
  • Persistent task execution
Key features
  • Android Oreo+ only
  • Persistent foreground notification
  • Simple start/stop API
  • Platform channel integration
  • No iOS support
Suitable for
  • Apps needing persistent background execution
  • Location-based services
  • Media players
  • Task schedulers
  • Background data processing
Considerations
  • Not compatible with iOS
  • Requires Android Oreo or higher
  • Must display a persistent notification
  • Limited to Android platform
  • May impact battery life
Supported platformsAndroid

Install package

flutter pub add flutter_foreground_plugin

Categories

Source repository

Related projects

No data available yet.