rmawatson / flutter_isolate

Launch an isolate that can use flutter plugins.
MIT License
262 stars 80 forks source link

On the iOS platform,How to share data using flutter_isolate #111

Open WithToken opened 2 years ago

WithToken commented 2 years ago

Hi, On the iOS platform, I use FlutterEngineGroup to create multiple engines, can I use flutter_isolate for data communication? Thanks.

nmfisher commented 2 years ago

I have an open issue to update the whole flutter_isolate plugin for compatibility with FlutterEngineGroup (see https://github.com/rmawatson/flutter_isolate/issues/73), but at the moment I don't this will work as-is. I did some initial work to test this (on Android only) - see https://github.com/nmfisher/flutter_isolate_engine_group - but from memory the FlutterEngineGroup API wasn't stable at the time so I don't think this went very far.

I still plan to implement this but I won't have time for at least a couple of months so don't hold your breath. If you implement this for iOS, I would certainly welcome a PR (or at least sharing the code you use to get it working).