boot_completed 0.1.0 copy "boot_completed: ^0.1.0" to clipboard
boot_completed: ^0.1.0 copied to clipboard

outdated

Flutter plugin to execute dart code on boot completed. Currently only lightly tested with Android (Kotlin). iOS will probably not be supported, since AFAIK the only way to do something similar is to a [...]

boot_completed #

Flutter plugin to execute dart code on boot completed.

Getting Started #

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

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

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

  3. 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

5
likes
0
pub points
49%
popularity

Publisher

unverified uploader

Flutter plugin to execute dart code on boot completed. Currently only lightly tested with Android (Kotlin). iOS will probably not be supported, since AFAIK the only way to do something similar is to add VoIP or something, which would be dishonest as well as terribly hacky.

Homepage

License

unknown (LICENSE)

Dependencies

flutter, path_provider

More

Packages that depend on boot_completed