Have a look at the images. I'm trying to implement the android work manager natively via the method channel. Now, if we start the work manager, I need to call a method on the Flutter side.
I can't find a way to do that. I need flutterEngine for that, and that object should come from FlutterActivity. But there is no way to pass that to the work manager. It lets you pass only data types like int, bool, double, and string.
You can use the package or implement it similarly with the package https://pub.dev/packages/workmanager
On flutter
PluginUtilities.getCallbackFromHandle(Function callback)
On Android
engine.dartExecutor.executeDartCallback
) using the saved callback handle key