flutter_workmanager
flutter_workmanager copied to clipboard
Android Studio run won't find callback when cable unpluged
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.
I'm also experiencing this issue.
It's probably due to the way Dart works with the IDE. Isolates are paused when the debugger is disconnected, see this issue.