Platform connection
This component requires iOS 13 or later.
Events are sent to the platform using the Tracking Component.
It is responsible for tracking and monitoring the information collected while operations are running. You can monitor this data in real time on the Platform, while the process is running on the customer's device.
Unlike the other components, this component does not work independently; it operates across the other components installed in the SDKMobile.
Dependencies
CocoaPods
Facephi libraries are distributed remotely using dependency managers. On iOS, CocoaPods is used. The required dependencies that must be installed beforehand (by adding them to the project's Podfile) are:
pod 'FPHISDKMainComponent', '~> $VERSION'To install the Tracking component, add the corresponding dependency to the project's Podfile , along with the SDK's required dependencies.
pod 'FPHISDKTrackingComponent', '~> $VERSION'Swift Package Manager (SPM)
If you use SPM, make sure the SDK's mandatory dependencies are installed beforehand.
//HTTPS
https://github.com/facephi-clienters/SDK-SdkPackage-SPM.git
//SSH
[email protected]:facephi-clienters/SDK-SdkPackage-SPM.gitTo install the Selphi component, include it in the project's modules.
Permissions
In the client application where the components will be integrated, add the following entry to the Info.plist file if tracking will send location data:
Integration
To reference the dependency from our Swift code:
SDK Injection
Initializing TrackingController
Create an instance of TrackingController before calling SDKController.shared.initSdk, passing it in the trackingController.
enableLocation
Controls whether the Tracking component requests and sends location data in events to the platform. Defaults to true.
Receiving errors
Tracking controller errors are not terminal. Unlike the rest of the SDK, they are reported through the callback injected during its initialization (trackingError in the initializer above).
The parameter trackingError is a String that can have the following values:
APPLICATION_CONTEXT_ERROR: Error initializing the context
ASSET_LINK: Error sending the asset link
ASSET_UPLOAD: Error uploading the asset
COMPONENT_LICENSE_ERROR: The component license is 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 missing
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: General 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 the session ID
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 problem
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