Info.plist. Otherwise, the default IDFA (00000000-0000-0000-0000-000000000000) will be returned.Info.plist; otherwise, the result will be nil.Project Settings in XcodeTargetGeneral Tab and in Frameworks, Libraries, and Embedded Content and click +Add Other... and then Add files...FreedomID.xcframeworkcreate method of the DeviceID class.DeviceID class performs an initial asynchronous setup. If this setup fails, the subsequent call to getRequestID will return a notInitialized error.getRequestID method of the DeviceID class. This method obtains a unique identifier request ID that will track the fingerprinting transaction through the system.getRequestID method takes one parameter:Result<String, DeviceIdError>:DeviceIdError enum defines a set of possible errors that can occur during device ID data collection and the communication process. Each error represents a specific issue related to the request's structure, identification, application integrity, or the process of sending and receiving requests.DeviceIdError | Value | Details |
|---|---|
notInitialized | Indicates that the DeviceID class was not initialized or failed session initialization request. |
identificationError | Represents an error from backend. Contains underlying IdentificationError error. |
verificationError | Indicates a failure in verifying the response during the initial session request in create. |
invalidDataError | Represents an invalid data error in sent parameters during getRequestID. |
unknownError | Represents an unknown error. |
IdentificationError enum defines a set of possible errors identified by the server that occurred during requests.IdentificationError | Value | Details |
|---|---|
SESSION_PROCESSING_ERROR | Indicates that an error occurred during handling of the session initialization request or while creating a response on the server side. |
INCORRECT_REQUEST_STRUCTURE | Represents an error in the request's header. |
DATA_PROCESSING_ERROR | Indicates that the server failed to decrypt the request data. |
REQUEST_VALIDATION_ERROR | Indicates that a sent parameter is invalid. |
REQUEST_RECEIVING_ERROR | Represents an error that occurred during initial session request handling on the server in create. |
EXPIRED_DATA_ERROR | User's credentials have expired or were not found in the database. |