Skip to content

🐞 Inaccurate code in Readme file, the code in "How to use the package?"  #500

@NullByte08

Description

@NullByte08
  • I have read the README
  • I have done the setup for Android
  • I have done the setup for iOS
  • I have ran the sample app and it does not work there

Version

Technology Version
Workmanager version
Xcode version
Swift version
iOS deployment target

Describe the error
in callbackDispatcher() function's body, the variable backgroundTask is undefined.

void callbackDispatcher() {
  Workmanager().executeTask((task, inputData) {
    print("Native called background task: $backgroundTask"); //simpleTask will be emitted here.
    return Future.value(true);
  });
}

Output of flutter doctor -v

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions