fluttercommunity / flutter_workmanager

A Flutter plugin which allows you to execute code in the background on Android and iOS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🐞 Stop background service when app is closed

muhammadumairaslam opened this issue Β· comments

  • 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 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

any update ??

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.