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

Issue with shared_preferences package #26

Closed
bahag-roostap opened this issue Mar 12, 2023 · 2 comments
Closed

Issue with shared_preferences package #26

bahag-roostap opened this issue Mar 12, 2023 · 2 comments

Comments

@bahag-roostap
Copy link

Hi
Recently I added this package to our project in order to use the geo-fencing feature, but it seems that its dependencies use shared_preferences_ios which is incompatible with the latest shared_preferences package as "shared_preferences: ^2.0.18"
it causes an error as follows:

[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method getAll on channel plugins.flutter.io/shared_preferences)

Could you please tell me what's going on?

@aykuttasil
Copy link

Same issue! Why this is happen?

@hellodevstudio
Copy link

"I had the same error and I solved it by adding shared_preferences_ios: ^2.0.0 to my pubspec.yaml file."

"shared_preferences_ios" is a Flutter package that provides a simple way to store and retrieve data in the persistent memory of the device. The version "^2.0.0" of this package is compatible with iOS 14 and later versions.

To add this dependency to your pubspec.yaml file, you should follow these steps:

1-Open your Flutter project's pubspec.yaml file.

2-Look for the "dependencies" section in the file.

3-Add the dependency "shared_preferences_ios: ^2.0.0" at the end of the dependencies list.

4-Save the pubspec.yaml file.

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

4 participants