flutter_workmanager icon indicating copy to clipboard operation
flutter_workmanager copied to clipboard

Build Failures in Example App: Missing Parameters and Undefined Methods in Workmanager

Open Turskyi opened this issue 4 months ago • 0 comments

I encountered compilation errors while running the example app from the flutter_workmanager repository.

Environment

  • Flutter version: 3.24.3
  • Dart version: 3.5.3
  • Android Emulator API: 30
  • iOS Simulator: iPhone 16 Plus

Errors Encountered

  • Error: No named parameter with the name 'flexInterval'.
  • Error: The method 'registerProcessingTask' isn't defined for the class 'Workmanager'.
  • Error: The method 'isScheduledByUniqueName' isn't defined for the class 'Workmanager'.
  • Error: The method 'printScheduledTasks' isn't defined for the class 'Workmanager'.

Steps to Reproduce

  1. Clone the https://github.com/fluttercommunity/flutter_workmanager repository.
  2. Navigate to the example folder.
  3. Run flutter pub get.
  4. Attempt to run the app on an Android Emulator or iOS Simulator.

Request for Guidance

The README for the example app appears to lack detailed instructions for setting it up and running it correctly. If there are specific steps or configurations required that are not mentioned, could you please provide some guidance? This would greatly help users who may encounter similar issues when trying to run the example app.

Thank you!

Turskyi avatar Sep 30 '24 21:09 Turskyi