flutter_workmanager icon indicating copy to clipboard operation
flutter_workmanager copied to clipboard

Android Studio run won't find callback when cable unpluged

Open RicardoGSGraca opened this issue 2 years ago • 2 comments

While using Android Studio, if you run the application when clicking the Run button (green arrow on top) it will compile, install and run the application and everything works, but as soon as you unplug the cable (or sever the connection with Android Studio) all scheduled functions will just not run. Although if you kill the application and run it from the smartphone normally, everything works as planned.

Also using flutter run, or install the application via adb (debug or release) and then run it from the smartphone works as expected.

RicardoGSGraca avatar Nov 10 '22 09:11 RicardoGSGraca

I'm also experiencing this issue.

jwadin avatar Nov 25 '22 16:11 jwadin

It's probably due to the way Dart works with the IDE. Isolates are paused when the debugger is disconnected, see this issue.

SoftWyer avatar Apr 04 '23 08:04 SoftWyer