workmanager 0.0.11 copy "workmanager: ^0.0.11" to clipboard
workmanager: ^0.0.11 copied to clipboard

outdated

Flutter Workmanager. This plugin allows you to schedule background work on Android and iOS.

0.0.11 #

  • Better README and docs
    • Everything now refers to the top level callback as the callbackDispatcher
    • Some typo's
    • Link to Medium blog post
  • Adds unit tests to the project since the many issues with enum parsing
    • Fixes an issue with the parsing of the NetworkType
  • Project restructure to a src folder

0.0.10 #

  • I should test a little better before publishing to pub.dev.
    • Fixes all enum parsing issues with ExistingWorkPolicy and BackoffPolicy

0.0.9 #

  • A bugfix were parsing the BackOffPolicy was still wrong.

0.0.8 #

  • A bugfix were parsing of the ExistingWorkPolicy and BackoffPolicy went rogue. Addresses #9

0.0.7 #

  • This version is the first version to support iOS with the help of the Background Fetch API.
    • Only recurring tasks can be scheduled by iOS.
    • If you want to respond to iOS background triggers you should add the extra case Workmanager.iOSBackgroundTask to your switch case.
  • [‼️ BREAKING change]
    • Workmanager.defaultCallbackDispatcher becomes Workmanager.executeTask
  • This version was used as referenced in the Medium blogpost

0.0.6+2 #

  • Fixes a bug in which you could not use other plugins inside a EchoCallbackFunction.
    • Fixes #6

    • Fixes #4

    • [‼️ BREAKING change] 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" <!-- Replace io.flutter.app.FlutterApplication with .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>
      

0.0.6+1 #

  • This version is the first version to support iOS with the help of the Background Fetch API.
    • Only recurring tasks can be scheduled by iOS.
    • If you want to respond to iOS background triggers you should add the extra case Workmanager.iOSBackgroundTask to your switch case.
  • [‼️ BREAKING change]
    • Workmanager.defaultCallbackDispatcher becomes Workmanager.executeTask

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.5 #

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

0.0.4 #

  • Provide a better description so package scores higher on Pub

0.0.3 #

  • Add Dart documentation

0.0.2 #

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

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
1887
likes
0
pub points
99%
popularity

Publisher

verified publisherfluttercommunity.dev

Flutter Workmanager. This plugin allows you to schedule background work on Android and iOS.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on workmanager