FAQs on iOS Integration

1. How to check web-specific logs?

You can connect the Safari browser on your Mac to the WKWebView, and get access to the console.

What you need to do is, from Safari, open the "Develop" tab and while the iOS Simulator is running with the WKWebView, just click it to open the console. 

2. How to change navigation bar color?

Our SDK adapts to your application theme preference. You can set these preferences anywhere in your app.

if #available(iOS 13.0, *) {
    let appearance = UINavigationBarAppearance()
    appearance.configureWithDefaultBackground()
    appearance.backgroundColor = myBackgroundColor
    navigationController?.navigationBar.standardAppearance = appearance
    navigationController?.navigationBar.scrollEdgeAppearance = appearance
    //navigationController?.navigationBar.compactAppearance = appearance
} else {
    // Fallback on earlier versions
    navigationController?.navigationBar.barTintColor = myBackgroundColor
}

3. How can I hide the tab bar when presenting the chatbot?

Pass HPCustomBuilder object and set hidesTabBar property as true.

let customSetting = HPCustomBuilder.build { (builder) in
    builder.hidesTabBar = true
    builder.loaderEnable = true
}


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