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

Platform connection

Introduction

Events are sent to the platform using the Tracking Component.

This component handles tracking and monitoring the information obtained during operation execution. You can track this data in real time on the Platform, while the process is running on the client's device.

Unlike the other components, this one does not work independently; it works across the other components installed in the SDKMobile.

The Simplified Launch section details the steps required for basic SDK integration. This section provides information about launching this component.


Dependency

The component-specific dependency is:

implementation "com.facephi.androidsdk:tracking_component:$version"

Available controllers

Controller

Description

TrackingController

Main tracking controller

TrackingErrorController

Controller for handling any errors that occur

ExtraDataController

Controller for retrieving ExtraData which enables communication from the client to the server with SelphIDSdk installed.


Simplified Launch

The controller must be included during SDK initialization.

Error handling

You can configure the callback to handle tracking errors:

Advanced information

Additional Controllers

ExtraDataController

This controller (ExtraDataController) retrieves an identifier for the current operation. This data will be sent to the backend, where the relevant checks will be performed.

The call to retrieve extraData requires information about the operation in progress, which requires that a has been performed previously, a newOperation.

Receiving errors

For errors, we will have the TrackingError class. The class will return 3 fields:

  • name: String containing the error name

  • error: Additional information, if necessary

  • stepType: SDK component where sending the event failed

List of errors:

  • APPLICATION_CONTEXT_ERROR: Error initializing the context

  • ASSET_LINK: Error sending the asset link

  • ASSET_UPLOAD: Error uploading the asset

  • COMPONENT_LICENSE_ERROR: Component License missing or invalid

  • CUSTOMER_ID: Error retrieving or validating the customer ID

  • DEVICE_EVENT_ERROR: Failure during a device-related event

  • EMPTY_LICENSE: License data is empty or does not exist

  • FLOW: Error during the execution Flow

  • INITIALIZATION_ERROR: General initialization failure

  • INIT_IDS_ERROR: Error generating or assigning IDs during Initialization

  • INIT_OPERATION: Operation failed during the Initialization phase

  • LICENSE_ERROR: Invalid or corrupted License

  • MANAGER_NOT_INITIALIZED: The manager was used without being initialized

  • NETWORK_CONNECTION: Network connection problem

  • NETWORK_ERROR: Generic network failure

  • NO_OPERATION_CREATED_ERROR: No operation was created when one was expected

  • OCR_DATA: Error processing OCR data

  • OPERATION_NOT_CREATED: The expected operation was not generated

  • OPERATION_ID: Invalid or missing operation ID

  • SESSION_ID: Error with session identification

  • SIGNATURE_RESULT: Failure during the signing process or with its result

  • STEP_CHANGE: Unexpected or invalid step transition

  • STEP_RESULT_CANCELLED: The step was unexpectedly cancelled

  • STEP_RESULT_ERROR: The step ended with an error

  • STEP_RESULT_EXPIRED: The step result expired before completion

  • STEP_RESULT_SUCCEEDED: The step succeeded but generated an unexpected issue

  • TOKEN_ERROR: Missing, expired, or invalid Token

  • ADVANCED_TRACKING_UPLOAD: Failed to upload advanced tracking data

  • TENANT_ID_EMPTY_ERROR: The tenant ID was empty or missing

  • ADVANCED_TRACKING_SERIALIZATION_ERROR: Error serializing advanced tracking data

  • ADVANCED_TRACKING_VALIDATION_ERROR: Tracking data validation failed

  • TOKENIZER_ERROR: Error during the tokenization process

Last updated