iOS SDK
Device ID
Introduction
Parameter Collection and Permissions
To ensure optimal functionality, please review the following section carefully.
Potential Required Permissions
1.
Info.plist
. Otherwise, the default IDFA (00000000-0000-0000-0000-000000000000
) will be returned.2.
Info.plist
; otherwise, the result will be nil
.Getting Started
Prerequisites
Installation Instructions
1.
Project Settings
in Xcode2.
Target
3.
General
Tab and in Frameworks, Libraries, and Embedded Content
and click +
4.
Add Other...
and then Add files...
5.
FreedomID.xcframework
6.
Usage
Device ID Initialization
create
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.Request ID Generation
getRequestID
method of the DeviceID
class. This method obtains a unique identifier request ID
that will track the fingerprinting transaction through the system.The
getRequestID
method takes one parameter:Result<String, DeviceIdError>
:
Data Structures
DeviceIdError Structure
General Description
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.Table: 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 Structure
General Description
IdentificationError
enum defines a set of possible errors identified by the server that occurred during requests.Table: 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. |
Support
Modified at 2025-04-24 17:53:07