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

Sample applications

Once the Facephi SDK is integrated into your Android project, initial configuration is necessary for the biometric solutions to 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 from 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

// Customer 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 the one requested in the License.


Last updated