Open cdoco opened 2 years ago
I tracked the code because plugin.activity
is null.
I guess flutter_inappwebview
needs to rely on UI interaction and may need to implement ActivityAware
.
https://github.com/flutter/flutter/wiki/Experimental:-Create-Flutter-Plugin#uiactivity-plugin
@cdoco unfortunately isolates are not attached to an Activity (see https://github.com/rmawatson/flutter_isolate/issues/71#issuecomment-827329925 for further details) and I'm not sure if there's a catch-all solution for doing so (arbitrarily spawning a new Activity for every isolate would be a bad idea).
I'll keep this issue open to investigate further, but I wouldn't hold my breath for a solution.
I want to
HeadlessInAppWebView
is used influtter_isolate
, but it does not work.Example code
Error received