Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launch controller does not have navigation controller instance" #14

Open
arunsngh100 opened this issue May 8, 2022 · 1 comment
Open

Comments

@arunsngh100
Copy link

Hi Dev Team... getting below message while using latest version

Error Domain=com.haptik.HPWebKit Code=-56 "Launch controller does not have navigation controller instance" UserInfo={NSLocalizedDescription=Launch controller does not have navigation controller instance, NSLocalizedRecoverySuggestion=Embed launch controller with navigation controller}

IDE - Xcode 13.3.1
Swift Compiler - 5
Minimum OS Support - 11.1

@avinashamanjha251
Copy link

Hi Dev Team,
I'm also getting the same

"Launch controller does not have navigation controller instance"
I tried to open sdk from app delegate in flutter project getting same message ...


 AppDelegate.shared.nvc = UINavigationController(rootViewController:  UIViewController())
        AppDelegate.shared.nvc?.isNavigationBarHidden = true
        UIView.transition(with: AppDelegate.shared.window!, duration: 0.33, options: UIView.AnimationOptions.transitionCrossDissolve, animations: {
            AppDelegate.shared.window?.rootViewController =  AppDelegate.shared.nvc
        }, completion: { (finished) in

        })
        AppDelegate.shared.window?.becomeKey()
        AppDelegate.shared.window?.makeKeyAndVisible()
             
        do {
            try HPKit.sharedSDK.loadGuestConversation(launchController: AppDelegate.shared.nvc!, customData: nil)                    
            result(true)
        } catch {
            print(error)
            result(false)
        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants