English | 中文
FIDO BioAuthn AndroidX Sample provides many sample programs for your reference or usage.
For more development details, please refer to the following link: Development Guide & API References
We also provide an example to demonstrate the use of BioAuthn Androidx SDK for Android. This sample uses the Gradle build system. First download the demo by cloning this repository or downloading an archived snapshot.
In Android Studio, use the "Open an existing Android Studio project", and select the directory of "fido-bioauthn-androidx-sample". You should create an app in AppGallery Connect, and obtain the file of agconnect-services.json and add to the project. You should also generate a signing certificate fingerprint and add the certificate file to the project, and add configuration to build.gradle. See the Configuring App Information in AppGallery Connect guide to configure app in AppGallery Connect.
Replace "com.huawei.hms.fido.sample.bioauthn" in build.gradle with you own applicationId.
You can use the "gradlew build" command to build the project
Before using FIDO BioAuthn AndroidX Sample code, check whether the java environment and Android Studio have been installed. Decompress the FIDO BioAuthn AndroidX Sample code package.
Java 1.8 or a later version is recommended.
No additional configuration is required.
1). Shows the fingerprint prompt without CryptoObject and allows the user to use the device PIN and password for authentication.
2). Shows the fingerprint prompt with CryptoObject.
3). Sends a facial authentication request to the user device.
FIDO2 Sample is licensed under the Apache License, version 2.0.