For the complete documentation index, see llms.txt. This page is also available as Markdown.

Sample applications

Once Facephi's SDK is integrated into your Android project, it is necessary to perform the initial configuration so that the biometric solutions work correctly.

Sample applications can be found in the GitHub repository:

Android Repository v.2.3.X Android Repository Samples

Configure and run applications

  1. Include the user and Token provided by Facephi in the file local.properties (as indicated in Installation).

  2. Include the applicationId of the License in the application's Gradle.

  3. Fill in the data in the class SdkData.

SdkData - Data required for using the SDK

For the application to work correctly, the following data must be filled in:

// Data for online License
val environmentLicensingData: EnvironmentLicensingData = EnvironmentLicensingData(
apiKey = "....."
)

// Data for offline License
const val LICENSE = "...."
const val LICENSE_ONLINE = false

// Client identifier and operation type
const val CUSTOMER_ID = "...."
val OPERATION_TYPE = OperationType.ONBOARDING

// Selphi, with the name of the resources zip and configuration data
const val SELPHI_RESOURCES = ".....zip"
val selphiConfiguration = SelphiConfigurationData(
...,
resourcesPath = SELPHI_RESOURCES
)

// SelphID, with the name of the resources zip and configuration data
const val SELPHID_RESOURCES = "...zip"
val selphIDConfiguration = SelphIDConfigurationData(
...,
resourcesPath = SELPHID_RESOURCES
)

// Verification services URL
const val BASE_URL = "..."

IMPORTANT: The applicationId of the application must match what is requested in the License.


Last updated