fluttercommunity / flutter_workmanager

A Flutter plugin which allows you to execute code in the background on Android and iOS.
851 stars 260 forks source link

I can not start two background workers. #482

Closed nidovic closed 1 year ago

nidovic commented 1 year ago

Version

Technology Version
Workmanager version 0.5.1
Xcode version n/a
Swift version n/a
iOS deployment target n/a

Describe the error I can not start two background worker. I have two tasks that I want to run at the same time, the both have the same task id but different name. When I start the application only one task start but the second doesn't start. Even when I try to create two task identifiers, this method doesn't solve my problem..

Output of flutter doctor -v Flutter (Channel stable, 3.3.10, on Parrot OS 5.0 (LTS) 5.10.0-6parrot1-amd64, locale en_US.UTF-8) • Flutter version 3.3.10 on channel stable at /media/.... • Upstream repository https://github.com/flutter/flutter.git • Framework revision 135454af32 (6 months ago), 2022-12-15 07:36:55 -0800 • Engine revision 3316dd8728 • Dart version 2.18.6 • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc2) • Android SDK at /media/... • Platform android-33, build-tools 33.0.0-rc2 • ANDROID_HOME = /media/... • Java binary at: /usr/bin/java • Java version OpenJDK Runtime Environment (build 13.0.5.1+1-Debian-1) • All Android licenses accepted. Chrome - develop for the web • Chrome at google-chrome

[✗] Linux toolchain - develop for Linux desktop • Debian clang version 11.0.1-2 ✗ CMake is required for Linux development. It is likely available from your distribution (e.g.: apt install cmake), or can be downloaded from https://cmake.org/download/ ✗ ninja is required for Linux development. It is likely available from your distribution (e.g.: apt install ninja-build), or can be downloaded from https://github.com/ninja-build/ninja/releases • pkg-config version 0.29.2 ✗ GTK 3.0 development libraries are required for Linux development. They are likely available from your distribution (e.g.: apt install libgtk-3-dev)

[!] Android Studio (version 2022.1) • Android Studio at /media/... • Flutter plugin version 71.2.4 • Dart plugin version 221.6096 ✗ Unable to find bundled Java version. • Try updating or re-installing Android Studio.

[✓] VS Code • VS Code at /snap/code/current • Flutter extension version 3.66.0

[✓] Connected device (3 available) • SM A135F (mobile) • R58TA08G3PT • android-arm • Android 13 (API 33) • Linux (desktop) • linux • linux-x64 • Parrot OS 5.0 (LTS) 5.10.0-6parrot1-amd64 • Chrome (web) • chrome • web-javascript • Google Chrome 101.0.4951.41

[✓] HTTP Host Availability • All required HTTP hosts are available

nidovic commented 1 year ago

that work now , the method that have used is, two name tasks, two identifers but the same enter point.