flutter_foreground_service_plugin 0.1.7
flutter_foreground_service_plugin: ^0.1.7 copied to clipboard

A flutter plugin to create a foreground service with a periodic task in android

flutter_foreground_service_plugin #

What is this plugin? #

This plugin lets you create a foreground service in Android.

Tested devices: #

  • Android 8, OxygenOS 5.0.8
  • Android 8 (emulator)
  • Android 6 (emulator)

Caution:

  1. I have no idea what will happen if you try to run this plugin on IOS (I can't check this because I am not own any apple product its probably will crush your app)
  2. Some android operation systems have a strong battery optimization which sometimes kills foreground services, to handel this the plugin will automatically restart the service

What can you control? #

  1. Set the notification content:
    • title
    • body
    • icon
    • sub text
    • enable / disable sound
    • enable / disable vibration
    • color
  2. Set the notification channel content:
    • id
    • name
    • description
    • importance
    • lockscreen visibility
  3. Refresh the notification content
  4. Execute a task inside the service (runs even when the app is closed)
  5. Start service on boot automatically

App example:

7
likes
90
pub points
67%
popularity

A flutter plugin to create a foreground service with a periodic task in android

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

ofek7010@gmail.com

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_foreground_service_plugin