Flutter MissingPluginException(No implementation found for method getAll on channel ...) in release app
This is a classic mistake that allot of people make.
What you are trying to do is abstract heavy work to an isolate, however flutter isolates cannot run plugins, other than the api in flutter and the dart sdk directly.
You have a couple of options.
- There is a plugin I can recommend, it does not support all flutter (3rd party) plugins, but it's worth a try with yours.
https://pub.dev/packages/flutter_isolate
This plugin creates isolates that auto marshal plugin work back to the main isolate, without risking a runtime exception that base flutter isolates will normally throw.
- Run only the source code of the heavy process, that you are allowed to run in a base flutter isolate, by only using the flutter & dart sdk apis directly. The rest of the code that depends on plugins, will need to be relayed back to the main isolate, and the UI will have to wait for a result using a FutureBuilder
MissingPluginException while using plugin for flutter
If you are using hot restart or hot reload, it won't do the trick.
Since Flutter has to inject plugin dependencies into the platform-specific parts of your app, hot restart/hot reload is not enough to trigger the injection.
Check this issue for more.
Close the app and execute flutter run
command.
Related Topics
Ios: How to Make a Shadow for Uiview on 4 Side (Top,Right,Bottom and Left)
How to Programmatically Scroll Through a Collection View
Ios 7 Status Bar Back to iOS 6 Default Style in Iphone App
Uiimage(Contentsoffile:) Returning Nil Despite File Existing in Caches Directory
How Would I Create a Uialertview in Swift
Uilabel Sizetofit Doesn't Work With Autolayout Ios6
How to Opt-Out of Dark Mode on iOS 13
How to Inspect the View Hierarchy in Ios
How to Create a Button Programmatically
Wkwebview Not Loading Webpage - Renders Blank Screen in Swift
Vertically Align Text to Top Within a Uilabel
Evenly Space Multiple Views Within a Container View
Why Is There Extra Padding At the Top of My Uitableview With Style Uitableviewstylegrouped in Ios7
Move View With Keyboard Using Swift