-
Notifications
You must be signed in to change notification settings - Fork 387
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
MissingPluginException(No implementation found for method write on channel plugins.it_nomads.com/flutter_secure_storage) #83
Comments
The solution based on #71 (comment) is to uninstall the app. Works for me. |
I have a similar problem. I would like to access the secure storage while the app is in the background. I use the workmanager package. Initialization: The callbackDispatcher method:
However, I always receive the following exception when I simulate the background fetch.
|
It turned out that most probably the problem is that the plugin does not register itself when it has no Activity Context. Can you please provide a method to register the plugin in the application context to be able to access it without UI. |
Uninstalling and installing the app works for me |
thanks, this was affecting me in widget test |
Hi, I have installed this plugin, and I have the same issue. I tried unistalling the app, but it does not work. thank you in advance |
For me the error also disappeared. Most probably because I cleaned everything and/or uninstalled and reinstalled the app. I don't know what could cause that error. Fortunately it works properly now. Please note that sometimes the installed plugin version is not in sync with the In pubspec.yaml: |
Re installing and flutter clean worked for me too |
Uninstalling/reinstalling the app works -- make sure you set your minSdkVersion in your app/build.gradle to 18 or else it will fail on reinstall |
I'm facing this problem with android 4.4.2 (Samsung Galaxy Grand 2). Also, the same problem with Galaxy Tabs reported by my app users |
Same here, user reported this problem on Moto e5, Android 8.0 |
facing problem in google pixel 3a. |
Same problem here with Galaxy J7 2015 android 6.0.1 |
Check here #131 |
Same here, several users with different devices and Android versions are having this issue. Roughly 5% of our users are affected after an app upgrade which is quite significant. |
Yes Use Minimum SDK 18 |
I've got the same issue, could you fix it? |
Please see my comment on 4 Mar. The error disappeared automatically. |
Tried:
Still the same error:
|
@maxisme Are dou running it in Background? |
I just thought that it would work with MacOS if it worked with iOS turns out it doesn't so I used the dependency from this PR - #91 (not sure why it hasn't been merged) :
Now it works great. |
I have the same issue on samsung note 3 , android 5 |
Everything is fine when I use 'flutter run --release' to run the app on my android device. My devices are of Android 6 and Android 10 Deleted my local pub cache and regenerated it using 'flutter pub get', still no improvements. |
@8fdafs2 |
Many thanks! |
After few hours of surfing. Finally SOLVED for me. Here is what I found out. If you are calling Inside the Application.java or Application.kt After done that, do |
I am facing the same issue while I run my app for the flutter web or mac os... for the mobile app, it's working fine... |
@DhavalRKansara macOS and Web are not supported. |
If you are running in web-based platform, use localstorage library. |
@KoheiKanagu Agreed that in 4.1.0 they don't have support for the web and macOS but is there any planning to provide support for the macOS and web in the future? |
Something as simple as this fails to work for me.
|
It should not work. No plugins are available in test environment. You can mocks for test purpose
Sent from ProtonMail for iOS
…On Thu, May 13, 2021 at 21:55, Abhinav Singh ***@***.***> wrote:
Something as simple as this fails to work for me.
test('secure storage', () async {
final storage = new FlutterSecureStorage();
String? value = await storage.read(key: "access");
expect(value, "");
});
MissingPluginException(No implementation found for method read on channel plugins.it_nomads.com/flutter_secure_storage)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, [view it on GitHub](#83 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AA2JY7WKRU6S2YF44JHRNH3TNPK6ZANCNFSM4IYMZBXQ).
|
Thank you for quick response. We'll go ahead and add our own mocks. But in future won't it be possible to add something as simple as Thank you!!! |
hi, I am getting the error below, how can I solve it. |
Duplicate of #71 |
upgrade to 5.0.0 will fix this problem. |
Firstly, I am sorry if I am mistaken to giving answer to this issue but I was getting same error for trying to write unit test for my local project. So if I am not mistaken, we can't use the secure storage directly at tests. For this reason I write a simple mixin for my mock data source. If any one needs it, you can use it. `mixin MockSecureStorageMixin{ ///You can change the test delay based on your tests. Future<String?> mockGetSecureStorageTestValue(dynamic key)async{ Future mockSetSecureStorageTestValue(dynamic key, dynamic value)async{ Future<String?> mockSecureStorageTestValue(dynamic key)async{ Future mockSecureStorageClearer()async{ |
Uninstalling and installing the app works for me |
what is the exact solution for this in a test? I would like to add coverage on that. |
@felipecastrosales Did you find a solution for the test? |
Yeah @nikhil-s-b, I create in: I hope it helps. :) |
@felipecastrosales This is great! Thanks |
doesn't work. I'm on web. what is the solution? |
Oddly enough, deleting the application also helped me
I checked, everything works |
flutter doctor -v
Stack trace during scripted build/launch (MacOS 10.14.6, homebrew up to date):
Version in pubspec.yaml -> v3.2.1+1
Building on API 28, deploying to API 26 .... could that be the issue? There's a minimum supported version? Should it fail more gracefully?
The text was updated successfully, but these errors were encountered: