authpass / biometric_storage

Flutter plugin to store data behind biometric authentication (ie. fingerprint)
https://pub.dev/packages/biometric_storage
MIT License
183 stars 107 forks source link

Problem using the plugin for secret storage on Windows 10. #119

Open obalak opened 4 months ago

obalak commented 4 months ago

Hello, I'm using the plugin for long time on MacOS without any issue. I tried to use it on Windows 10 but I'm having an issue. I looked to the plugin implementation and it seems like it is not switching the instance creation when on Windows like it should be done using the FFI provided implementation. It is trying to using channel implementation which indeed does not exist. I don't know what is wrong with this?

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method init on channel biometric_storage)

0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:332:7)

#1 MethodChannelBiometricStorage.getStorage (package:biometric_storage/src/biometric_storage.dart:370:22) ``` authStorage = BiometricStorage(); ... _authFile = await _authStorage.getStorage(baseName, options: StorageFileInitOptions( darwinTouchIDAuthenticationAllowableReuseDuration: const Duration(seconds: 10), authenticationRequired: false)); ```