Flutter plugin for Android AlarmManager: run Dart code in the background when an alarm fires
open sourceBSD-3-Clausefree
android_alarm_manager_plus is a Flutter plugin for Android's AlarmManager service. An app schedules one-off or periodic alarms, and when one fires the plugin runs a Dart callback in a background isolate, even after the app has closed. It needs entries in AndroidManifest.xml, and on Android 14 and newer the app must ask for the SCHEDULE_EXACT_ALARM permission itself (with another plugin such as permission_handler). It works on Android only, and is one of the Flutter Community's plus_plugins, maintained in the fluttercommunity/plus_plugins repository.
Problems it solves
- run Dart code in my Flutter app every few minutes even when the app is closed on Android
- schedule a background task at an exact time in a Flutter Android app
- my Flutter app needs to do something when an alarm fires after the phone reboots
Features
- one-off and periodic alarms through Android AlarmManager
- Dart callbacks run in a background isolate when an alarm fires
- callbacks run even after the main app has ended
- alarm-clock alarms whose system UI taps send intents back to the app
Limitations
Alternatives
The same job
These do what android_alarm_manager_plus does.
- flutter_local_notifications Cross-platform Flutter plugin for displaying and scheduling local notifications
- Pigeon Code generator for type-safe calls between Flutter and native code
- Location (Flutter) Real-time device location for Flutter on every platform
