1.24.0 -> 1.24.1

Configuring Identity change

The identity.setIdentityAPI returns a callback with success or failure to notifiy host app if the identity was set successfully or not.

class InitializeSDK {
    init(completion: @escaping (Swift.Result<Void, Error>) -> Void) {
        try! initialize(
            Directories(root: sdkRootDirectory),
            configRegion: .CAN,
            logLevel: .debug,
            tokenSignerFactory: { self.appTokenSigner }
        )
        
        // New Implementation
        let identity = Identity(apiKey: apiKey, externalReferenceID: uid)
        identity.setIdentity { result in
            switch result {
            case .success:
                completion(.success(()))
            case .failure(let error):
                completion(.failure(error))
            }
        }
    }
}

Date Format change

Starting 1.24.1, the SDK uses the yyyy-MM-dd (standard calendar year) date format to compos custom dates range for Portal APIs.

  • SDK originally used YYYY, which may have caused issues where dates at the end of December or the beginning of January were interpreted as belonging to the wrong year (e.g., December 31, 2023, might be treated as part of 2024 in some cases). Switching to yyyy ensures that the date format consistently reflects the actual calendar year without unexpected shifts.

Last updated