DynamicSDK.initialize
Initialize the Dynamic SDK. This must be called once at app launch, before any SwiftUI views access the SDK.
Parameters
- props (ClientProps) — Configuration object with environment settings
Returns
- DynamicSDK — Initialized SDK instance
Example
DynamicSDK.instance
Get the SDK singleton instance. Only call after initialize() has been called.
Returns
- DynamicSDK — The SDK singleton instance
Example
ClientProps
Configuration object for initializing the Dynamic SDK.
Properties
Example
ClientDebugProps
Debug configuration options.
Properties
- webview (Bool) — Log webview messages
- messageTransport (Bool) — Log message transport events
- loggerLevel (Int?) — Override the logger level by numeric value
Example
SDK Modules
After initialization, the SDK provides access to various modules:
Environment Setup
URL Scheme Configuration
Add a URL scheme to your Info.plist for authentication callbacks:
Console Configuration
- Set your
redirectUrl to match your URL scheme (e.g., yourapp://)
- Whitelist your deep link URL in Dynamic Console under Security → Whitelist Mobile Deeplink
Complete Setup Example
Last modified on October 29, 2026