For the complete documentation index, see llms.txt. This page is also available as Markdown.

WebView Wrapper Integration

WebApp Integration is recommended.

  • When rendering your own website in a WebView, WebApp Integration is recommended.

  • Refer to the WebApp Integration guide for integration instructions.

If your app uses a WebView to render your own website and you do not need to use Hackle features in the app layer, you may consider WebView Wrapper Integration.

WebView Wrapper Integration is recommended when you use Hackle features on the web and only use Hackle push in the app.

With WebView Wrapper Integration, Hackle features called from the web will operate through the Web SDK.

App SDK Integration

Android SDK

When integrating with Android in WebView Wrapper mode, set the mode as shown below when initializing the app SDK.

val config = HackleConfig.builder()
  .mode(HackleAppMode.WEB_VIEW_WRAPPER) // <-- add WebView Wrapper mode
  .build()

Hackle.initialize(applicationContext, YOUR_APP_SDK_KEY, config) {
  // SDK ready to use.
}

iOS SDK

When integrating with iOS in WebView Wrapper mode, set the mode as shown below when initializing the app SDK.

Flutter SDK

When using Flutter in WebView Wrapper mode, set the hackleAppMode as shown below when initializing the app SDK.

Last updated