fluttercommunity / flutter_workmanager

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

🐞 Stop background service when app is closed #514

Open muhammadumairaslam opened 8 months ago

muhammadumairaslam commented 8 months ago

Version

Technology Version
Workmanager version 0.5.2
Platform Android 9
Device manufacturer / model Infinix HOT 8 / Infinix X650C
Flutter version 3.13.6

Describe the error Steps to reproduce the behavior:

downloaded your given example install into mobile via flutter run --release then close the app. after few minutes app stop automatically.

Android $ adb logcat image

Output of flutter doctor -v image

dipuapp commented 8 months ago

any update ??

milindgoel15 commented 8 months ago

Been seeing the work manager don't work on 0.5.2 on my app in the background as well. The logcat shows:

Error executing JobStatus{93a06b7 #u0a838/-1606274221 com.mgprojects.weatherwise/com.google.android.datatransport.runtime.scheduling.jobscheduling.JobInfoSchedulerService u=0 s=10838 TIME=-32s984ms:none NET READY}

But on launching the app, the work manager continues to work for the day. The next day, again it dies.