Step 2: Session Initialization
To initialize the Suki Ambient SDK in your iOS application, follow these steps:1. Import the Framework
2. Set the SDK Environment
Set the environment using theSukiAmbientCoreManager.shared.environment
property. The recommended environments for clients are STAGE
and PROD
.
3. Initialize the SDK
Call the initialization method after user login, or in your application delegate’sdidFinishLaunchingWithOptions
if login sessions persist across launches:
Key Notes
- Partner Info:
ThepartnerInfo
dictionary should include the partner ID and provider details. Currently, these parameters are not actively used, as the SDK is designed for a single user with one specialty. The initialization signature may change in future releases. - Completion Handler:
The completion block is invoked with the result of the initialization, whether successful or failed. - Delegates:
Optionally, set a delegate to receive recording-level event callbacks. - Error Handling:
The initialization method may throw aSukiAmbientCoreError
if an error occurs. - Token Provider:
The SDK requires a token provider object conforming to theTokenProvider
protocol. The client application is responsible for supplying a valid token whenever requested by the SDK. - Background Recording:
Passtrue
for background recording support if your app allows it. If set totrue
, the SDK will continue recording when the app is backgrounded; otherwise, recording will pause and must be resumed when the app returns to the foreground.