Skip to content
pubscout

autostart_settings

0.2.0, released 6 months ago by c-wolf.dev

Opens device‑specific autostart settings page

$ flutter pub add autostart_settings
Source repository

What it does

This plugin checks if a device has an autostart settings activity and can open it. It also supports opening battery‑saver settings to prevent background killing.

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

Use it when

  • You need to direct users to enable autostart for your app
  • You want to ensure background tasks survive device reboot
  • You support a wide range of Android manufacturers

Skip it when

  • You target iOS or other platforms
  • You already handle battery optimizations via permission_handler alone

Strengths

  • Wide manufacturer coverage
  • Simple async API
  • No build_runner or codegen required

Weaknesses

  • Android‑only
  • Requires API 14+
  • Does not handle iOS or web

Setup

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

Add dependency to pubspec, import package, call AutostartSettings.canOpen / open

import 'package:autostart_settings/autostart_settings.dart';

final canOpen = await AutostartSettings.canOpen(autoStart: true, batterySafer: true);
if (canOpen) {
  final opened = await AutostartSettings.open(autoStart: true, batterySafer: true);
}

Alternatives

Packages that do the same job and could replace autostart_settings.

Works with

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