Face id .Net Maui Plugin.Fingerprint

fac*_*ard 4 .net c# maui

我对毛伊岛有意见。我需要实现生物识别身份验证(Ios 设备上的面部 ID),但 Plugin.Fingerprint 包不起作用(它可能已经过时)。我正在使用.Net 版本 7.0.0。我尝试过将对象实例化为单例:

builder.Services.AddSingleton(typeof(IFingerprint), CrossFingerprint.Current);
Run Code Online (Sandbox Code Playgroud)

并注射它

    private readonly IFingerprint fingerprint;

public loginView(loginViewModel _loginViewModel,
    IFingerprint _fingerprint)
Run Code Online (Sandbox Code Playgroud)

创建对象时抛出错误:

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.
Run Code Online (Sandbox Code Playgroud)

有人能帮我吗?谢谢

fac*_*ard 5

我通过安装plugin.Fingerprint 的3.0.0 beta 版本修复了这个问题。您需要启用预发布