boot_completed 1.0.0

  • Readme
  • Changelog
  • Example
  • Installing
  • 75

boot_completed #

Flutter plugin to execute dart code on boot completed.

Getting Started #

See example source in repository.

A bunch of extra things need to be done to use this plugin:

  1. In your dart code, call boot_completed.setBootCompletedFunction(functionName)

    See main() in example/lib/main.dart

  1. On the android side, register org.thebus.boot_completed.BootCompletedPlugin as a broadcast receiver

    See example/android/app/src/main/AndroidManifest.xml

  1. On the android side, your application needs to subclass FlutterApplication, and implement PluginRegistry.PluginRegistrantCallback

    org.thebus.boot_completed.BootCompletedPlugin.setPluginRegistrantCallback(this) needs to be called,

    and PluginRegistrantCallback.registerWith should call GeneratedPluginRegistrant.registerWith()

    See example/android/app/src/main/kotlin/org/thebus/boot_completed_example/ExampleApplication.kt

    Don't forget to tell android to use your application subclass instead of FlutterApplication by modifying your AndroidManifest.xml

    See the application section in example/android/app/src/main/AndroidManifest.xml

1.0.0 #

flutter v1.7.8+hotfix.2, MethodCallHandler.onMethodCall suddenly has nonnull params

0.2.1+1 #

flutter format

0.2.1 #

add missing check in boot completed plugin to make sure the received intent is for boot completed

0.2.0 #

allow execution of the boot function to be put off by calling setDeferExecution(true)

this may or may not be useful if for instance you have other boot receivers and you want to execute them in a certain order

you will then have to call BootCompletedPlugin.handleBootCompleted yourself probably from within one of the other receivers' onReceive

0.1.1+1 #

ran flutter format on lib\boot_completed.dart

0.1.1 #

changed implementation of boot completed receiver back to the way that uses a method channel since it seems like hardcoding the dart function name only works in debug builds - with release builds, it's no longer functional

0.1.0+3 #

revised readmes a bit more, added link to github repo in pubspec added dartdoc comment confirmed compatibility with path_provider 1.0.0, changed dependency to ">=0.5.0+1 <2.0.0"

0.1.0+2 #

change http url to https

0.1.0+1 # analysis now finds the description is too long - shortened it

0.1.0 #

Update version number and a few non-functional things suggested by analysis.

0.0.1 #

Initial version with working example.


boot_completed_example #

Demonstrates how to use the boot_completed plugin.

Getting Started #

See example source in repository.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  boot_completed: ^1.0.0

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:boot_completed/boot_completed.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Oct 23, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.1
  • pana: 0.12.21
  • Flutter: 1.9.1+hotfix.4


Detected platforms: Flutter

References Flutter, and has no conflicting libraries.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
path_provider >=0.5.0+1 <2.0.0 1.4.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.7
platform 2.2.1
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies