Overview
To use the Suki mobile SDK, you must configure it when your application starts. Follow these steps to initialize the SDK.Configure The SDK
Follow these steps to configure the mobileSDK:Set the SDK Environment
Set the SDK environment by assigning a value to the
SukiAmbientCoreManager.shared.environment property. The recommended environments are .stage and .prod.Initialization Parameters
Theinitialize method takes the following parameters:
A dictionary containing partner and provider details.
Set this to
true if your app supports background recording. If true, recording continues when the app is in the background. Otherwise, recording pauses and you must resume it when the app returns to the foreground.A completion handler that is called with the result of the initialization, indicating success or failure.
An optional delegate object to receive callbacks for recording-level events.
An object that conforms to the
TokenProvider protocol. Your application (client application) is responsible for providing a valid token when the SDK requests one through this protocol.Error Handling
Theinitialize method can throw a SukiAmbientCoreError. You should use a do-catch block, as shown in the example above, to handle any potential errors during initialization.