Skip to main content

dozeless 0.1.0 copy "dozeless: ^0.1.0" to clipboard
dozeless: ^0.1.0 copied to clipboard

PlatformAndroid

AlarmManager-only background job runner for Flutter on Android. Job logic is written in Dart and runs in a headless engine.

0.1.0 #

  • Exact-alarm job chain per job id with an inexact fallback, re-armed before every run.
  • Dart job callbacks run in a cached headless FlutterEngine and are awaited, with a timeout and a wake lock.
  • Prerequisites (location, background location, battery unrestricted, not background-restricted), stop and resume with a notification.
  • Recovery after boot, app update, force stop and clock changes; hourly watchdog. On Android 15+ this includes the BOOT_COMPLETED the system sends without a reboot when a user action ends the force-stopped state.
  • System events for jobs: boot, timeChanged, timezoneChanged, processExit.
  • Optional Quick Settings tile (DozelessTileService) that repairs every job, also after a force stop, without opening the app.
  • Optional force-stop guard (DozelessAdminReceiver, Setting.forceStopGuard, Dozeless.disableForceStopGuard()): a device admin without policies, so Settings disables "Force stop". As device owner it also sets setUserControlDisabledPackages. Its state is in PrerequisiteStatus.forceStopGuard and forceStopGuardAvailable.
1
likes
160
points
781
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

AlarmManager-only background job runner for Flutter on Android. Job logic is written in Dart and runs in a headless engine.

Repository (GitHub)
View/report issues

Topics

#background #alarm #android #doze #background-location

License

Apache-2.0 (license)

Dependencies

flutter

More

Packages that depend on dozeless

Packages that implement dozeless