autostart_settings
0.2.0, released 6 months ago by c-wolf.dev
Opens device‑specific autostart settings page
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.
- app_settings
Open iOS and Android phone settings pages from a Flutter app.
89Compare - google_api_availability
Check the availability of Google Play services on an Android device.
88Compare - safe_device
Detect jailbreak/root, emulator, mock location and other safety flags on iOS/Android devices.
87Compare - open_settings_plus
Opens specific iOS and Android system settings screens from Flutter.
84Compare
Works with
Packages commonly used together with autostart_settings: ones it builds on, ones built on it, and its own family.