我在Maui遇到了一个问题。我需要实现生物特征认证(在iOS设备上的人脸识别),但是Plugin.Fingerprint包不起作用(可能已经过时了)。我使用的是.Net版本7.0.0。我尝试了两种方法:
builder.Services.AddSingleton(typeof(IFingerprint), CrossFingerprint.Current);
然后注射到
private readonly IFingerprint fingerprint;
public loginView(loginViewModel _loginViewModel,
IFingerprint _fingerprint)
创建对象时引发错误:
This functionality is not implemented in the portable version of this assembly. You should reference the NuGet package from your main application project in order to reference the platform-specific implementation.
有人能帮帮我吗?谢谢
1条答案
按热度按时间k97glaaz1#
我通过安装plugin.Fingerprint的3.0.0 beta版本修复了这个问题。