Initializing SDK for iOS SDK

Initialize Haptik SDK before you start using it. This will prepare SDK for launch.

import UIKit
import HPWebKit
@main
class AppDelegate: UIResponder, UIApplicationDelegate {

var window: UIWindow?

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        // Override point for customization after application launch.
        HPKit.sharedSDK.setup()
        return true
    }
}

Can’t find what you’re looking for? Email us at support@haptik.ai.