SDK Initialization Errors

Prev Next

Ensure the native SDK is initialized before using WebView features:

// iOS: Initialize before setting up WebView
Insider.initWithLaunchOptions(
  launchOptions,
  partnerName: "<your-partner-name>",
  appGroup: "<app-group>"
)

Then, somewhere in your main view controller, set up the WebView library

Insider.setupWebViewSDK(on: webView)

If initialization fails or is not called, you'll receive the following message upon calling a method: "Insider SDK is not initialized. Please initialize Insider SDK before using Insider WebView features."

window.insider.getInsiderID()
  .then((insiderID) => {
    console.log('Insider ID:', insiderID);
  })
  .catch(error => {
    console.error(error);
    // Output: "Insider SDK is not initialized. Please initialize Insider SDK before using Insider WebView features."
  });