Is your feature request related to a problem? Please describe.
Trying to call a plugin within a spawn isolate fails. This limits use cases for this package.
Describe the solution you'd like
Since 13937 it's possible to pass a root token and call BackgroundIsolateBinaryMessenger.ensureInitialized within the isolate. But it only works for some plugins (those that do dart -> platform messenging, but not platform -> dart messenging). Hopefully this package can do the necessary plumbing so that it works whatever the plugin.
Describe alternatives you've considered
flutter_isolate is another package trying to make isolates nicer, and it supports plugins, but it has its own issues and limitations.
Is your feature request related to a problem? Please describe.
Trying to call a plugin within a spawn isolate fails. This limits use cases for this package.
Describe the solution you'd like
Since 13937 it's possible to pass a root token and call
BackgroundIsolateBinaryMessenger.ensureInitializedwithin the isolate. But it only works for some plugins (those that dodart -> platformmessenging, but notplatform -> dartmessenging). Hopefully this package can do the necessary plumbing so that it works whatever the plugin.Describe alternatives you've considered
flutter_isolateis another package trying to make isolates nicer, and it supports plugins, but it has its own issues and limitations.