我們正在Android上創建一個時間戳應用程序,理想情況下這將使用指紋識別用戶。Android爲多用戶使用新的指紋API
在一個組織中,可以有150個不同的用戶。指紋API會允許多個用戶嗎?或者,這是目前只爲設備的所有者?如果這僅適用於當前用戶,是否還有其他可用的API可用?如果不是,我認爲我們需要完全放棄這條道路。
我們正在Android上創建一個時間戳應用程序,理想情況下這將使用指紋識別用戶。Android爲多用戶使用新的指紋API
在一個組織中,可以有150個不同的用戶。指紋API會允許多個用戶嗎?或者,這是目前只爲設備的所有者?如果這僅適用於當前用戶,是否還有其他可用的API可用?如果不是,我認爲我們需要完全放棄這條道路。
Android M或三星或iPhone API只允許針對設備用戶驗證當前用戶。
有一些與Android平臺兼容的指紋掃描儀以及適用於Android的SDK。這些SDK允許獲取指紋圖像或模板。掃描儀已插入USB端口,因此您無法對平板電腦充電並同時使用指紋掃描儀。例如:
還有集成了指紋掃描儀,並與SDK的一些設備來獲得指紋圖像或模板。
嗨@LaurentY,不是我希望聽到的,但非常有用的感謝!我會密切關注如何找到可以實現多用戶並連接到指紋設備的API。 – rept
可以使用android.hardware.fingerprint.Fingerprint.class
/**
* Container for fingerprint metadata.
* @hide
*/
public final class Fingerprint implements Parcelable {
private CharSequence mName;
private int mGroupId;
private int mFingerId;
private long mDeviceId; // physical device this is associated with
...
}
反對與登記一個連同FingerprintManager內部類,但API的知名度比較是隱藏的,你需要使用反射
/**
* Container for callback data from {@link FingerprintManager#authenticate(CryptoObject,
* CancellationSignal, int, AuthenticationCallback, Handler)}.
*/
public static class AuthenticationResult {
private Fingerprint mFingerprint;
...
}
您是否找到了解決方案來識別多個用戶而不使用任何外部設備? @rept –
@AlejandroMartínezMartínez不幸的不是。很明顯,目前的API無法實現。 – rept