IssueRaiser

The Dreaded MissingPluginException (Let's have an FAQ)

As a plugin developer, I get numerous issues regarding this error on a regular basis. There are many unrelated causes for this error, and to make matters worse, the error message identifies the plugin that was attempting to use platform channels although that is not necessarily the plugin that is responsible for the error, and so you get issues posted by app developers on the wrong projects asking for the bug to be fixed. Furthermore, sometimes the error is caused by an incorrectly written plugin and other times it is caused by something the app developer did or didn't do. In both cases, there is a lack of documentation to help both the plugin developer and the app developer to navigate this issue and track down the root of what's causing it. What I think is sorely needed is an official MissingPluginException FAQ listing all of the causes for this error and how to address them. Additionally, since a lot of these errors can be caused whenever an app is creating a background FlutterEngine and it fails to register plugins for some reason, the documentation for Flutter background execution needs to be improved. The following page, for example, still refers to an old Medium article written by Ben Konyi that desperately needs an update: https://flutter.dev/docs/development/packages-and-plugins/background-processes On the Android side, the linked article has still not been updated to explain the v2 architecture and plugins that don't do this correctly may fail to do plugin regis

Posted by ryanheise on Jul 22, 2020, 6:03 AM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.3,500 issues0 comments

reliability (SaaS)

The Dreaded MissingPluginException (Let's have an FAQ)

ryanheiseJul 22, 2020, 6:03 AM

As a plugin developer, I get numerous issues regarding this error on a regular basis. There are many unrelated causes for this error, and to make matters worse, the error message identifies the plugin that was attempting to use platform channels although that is not necessarily the plugin that is responsible for the error, and so you get issues posted by app developers on the wrong projects asking for the bug to be fixed. Furthermore, sometimes the error is caused by an incorrectly written plugin and other times it is caused by something the app developer did or didn't do. In both cases, there is a lack of documentation to help both the plugin developer and the app developer to navigate this issue and track down the root of what's causing it. What I think is sorely needed is an official MissingPluginException FAQ listing all of the causes for this error and how to address them. Additionally, since a lot of these errors can be caused whenever an app is creating a background FlutterEngine and it fails to register plugins for some reason, the documentation for Flutter background execution needs to be improved. The following page, for example, still refers to an old Medium article written by Ben Konyi that desperately needs an update: https://flutter.dev/docs/development/packages-and-plugins/background-processes On the Android side, the linked article has still not been updated to explain the v2 architecture and plugins that don't do this correctly may fail to do plugin regis

Comments (0)

No comments yet. Start the discussion.

Comment on this issue