Resolves when the Sentiance SDK has finished initializing asynchronously.

  • Resolves immediately if the SDK is already initialized.
  • Throws a SdkInitializationError on every failure path. The error's reason carries the typed failure (a SdkInitializationFailureReason value), for example "NOT_TRIGGERED" when the host app never called the native initializer (initialization must happen on the main thread from Application.onCreate / AppDelegate didFinishLaunching), or the matching failure reason when init was attempted and failed.

Call this before any SDK API to make sure the SDK is initialized.

  • Returns Promise<void>