Skip to content
pubscout

auto_start_flutter

1.6.0, released 4 weeks ago by techflow.ir

Manage background execution, auto-start, battery optimization, and scheduled tasks on multiple platforms.

$ flutter pub add auto_start_flutter
Source repository

What it does

Helps manage OEM auto-start settings on Android, background app refresh on iOS, startup apps on Windows and macOS, and headless background task execution. Also provides battery optimization checks, exact alarm management, boot callbacks, and foreground services.

AI-written summary of version 1.6.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • Your app requires reliable background task scheduling or boot callbacks.
  • You need to guide users to OEM auto-start or battery optimization settings.
  • You need to run headless background tasks or foreground services.

Skip it when

  • You only need simple local notifications without background task management.
  • Your target platforms do not require managing background execution limits.

Strengths

  • Supports Android, iOS, macOS, Windows, and Linux.
  • Comprehensive coverage of OEM-specific auto-start settings.
  • Supports headless Dart callbacks on boot and custom schedules.

Weaknesses

  • Many background features depend heavily on platform permissions and OEM quirks.
  • Standard Android APIs cannot definitively verify if auto-start is actually enabled.

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
1

Requires adding specific permissions to AndroidManifest.xml depending on the features used (e.g. RECEIVE_BOOT_COMPLETED, WAKE_LOCK, FOREGROUND_SERVICE).

if (await AutoStart.isAutoStartSettingsAvailable()) {
  final result = await AutoStart.openAutoStartSettings();
  if (result == SettingsResult.notAvailable) {
    await AutoStart.openAppInfo();
  }
}

Alternatives

Packages that do the same job and could replace auto_start_flutter.

Works with

Packages commonly used together with auto_start_flutter: ones it builds on, ones built on it, and its own family.