workmanager 0.0.6+2 copy "workmanager: ^0.0.6+2" to clipboard
workmanager: ^0.0.6+2 copied to clipboard

outdated

Flutter Android Workmanager. This plugin allows you to schedule background work on Android with the Android WorkManager API.

0.0.1 #

  • Initial Release:
    • Schedule One off task
    • Schedule Periodic task
      • Fixed delay
    • Initial delay
    • Constraints
      • Support for 1 network type
      • requires battery not low
      • requires charging
      • requires device idle
      • requires storage not low
    • back off policy

0.0.2 #

  • Remove the need to register a custom Application on Android side. (Everything still works in testing)

0.0.3 #

  • Add Dart documentation

0.0.4 #

  • Provide a better description so package scores higher on Pub

0.0.5 #

  • The description was too big so you lose points for that too...

0.0.6 #

  • Expose a WorkManagerHelper to the native.
    • This makes it easier if you also have some native code that wants to schedule the Echo Worker

0.0.6+1 #

  • Fixes a bug when initializing without setting the isInDebugMode.

0.0.6+2 #

  • Fixes a bug in which you could not use other plugins inside a EchoCallbackFunction.
    • A user should extend a custom Application and register it in its AndroidManifest.xml

      class App : FlutterApplication(), PluginRegistry.PluginRegistrantCallback {
          override fun onCreate() {
              super.onCreate()
              WorkmanagerPlugin.setPluginRegistrantCallback(this)
          }
          
          override fun registerWith(reg: PluginRegistry?) {
              GeneratedPluginRegistrant.registerWith(reg)
          }
      }
      
      <manifest xmlns:android="http://schemas.android.com/apk/res/android"
          xmlns:tools="http://schemas.android.com/tools"
          package="be.tramckrijte.workmanager_example">
          
          <!-- io.flutter.app.FlutterApplication is an android.app.Application that
               calls FlutterMain.startInitialization(this); in its onCreate method.
               In most cases you can leave this as-is, but you if you want to provide
               additional functionality it is fine to subclass or reimplement
               FlutterApplication and put your custom class here. -->
          <application
              android:name=".App"
              android:icon="@mipmap/ic_launcher"
              android:label="workmanager_example"
              tools:replace="android:name">
              <activity
                  android:name=".MainActivity"
                  android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
                  android:hardwareAccelerated="true"
                  android:launchMode="singleTop"
                  android:theme="@style/LaunchTheme"
                  android:windowSoftInputMode="adjustResize">
                  <!-- This keeps the window background of the activity showing
                       until Flutter renders its first frame. It can be removed if
                       there is no splash screen (such as the default splash screen
                       defined in @style/LaunchTheme). -->
                  <meta-data
                      android:name="io.flutter.app.android.SplashScreenUntilFirstFrame"
                      android:value="true" />
                  <intent-filter>
                      <action android:name="android.intent.action.MAIN" />
                      <category android:name="android.intent.category.LAUNCHER" />
                  </intent-filter>
              </activity>
          </application>
      </manifest>
      
1890
likes
0
pub points
99%
popularity

Publisher

verified publisherfluttercommunity.dev

Flutter Android Workmanager. This plugin allows you to schedule background work on Android with the Android WorkManager API.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on workmanager