Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No implementation found for method getApplicationDocumentsDirectory on channel plugins.flutter.io/path_provider in the background service #152

Closed
Teckinfor opened this issue May 13, 2022 · 1 comment

Comments

@Teckinfor
Copy link

Teckinfor commented May 13, 2022

Hello,

I had a good time debugging but I can't figure out the source of the problem at all.
In my code I need to pass information from my UI to my service and vice versa, for that I use .json files which contain all the information I need.

The problem is that I can't use the getApplicationDocumentsDirectory function contained in a custom class in my service, even though I use the same class as in my UI. So the problem can't be the class.

A precision that may be important is that the getApplicationDocumentsDirectory function is called in my custom class and comes from the path_provider package which is quite common.

My error is this:

[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: MissingPluginException(No implementation found for method getApplicationDocumentsDirectory on channel plugins.flutter.io/path_provider)

Do you know why the service does not seem to take the package into account?
And if so, how do I fix it please?

Thanks in advance

@Teckinfor
Copy link
Author

#138

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant