background_doctor 0.1.1
background_doctor: ^0.1.1 copied to clipboard
Finds out why a Flutter app doesn't run in the background and why it closed: battery optimization, standby bucket, vendor autostart, exit reasons.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add background_doctorThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
background_doctor: ^0.1.1Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:background_doctor/background_doctor.dart';