Wednesday, October 28, 2026
HomeiOS Developmentswift - Deep Hyperlink not working after opening third-party ios SDK display...

swift – Deep Hyperlink not working after opening third-party ios SDK display in flutter plugin

[ad_1]

I’ve created a plugin in flutter. Inside this plugin’s iOS facet, I’ve used third-party iOS SDK. Third-party SDK accommodates their very own display. Deep-link working completely in flutter screens. However after I open the third-party SDK’s display then deep hyperlink cease working. For instance ScreenA is flutter’s display and ScreenB is third-party iOS SDK Display screen. Invoking deep hyperlink opens ScreenA however when i navigate to ScreenB then i cant open Display screen A utilizing deep hyperlink.
To open third-party sdk display I’ve used the beneath code on my plugin’s ios facet.

let flutterViewController = FlutterViewController()
            self.navigationController = UINavigationController(rootViewController: flutterViewController);
            self.navigationController.setNavigationBarHidden(true, animated: false)
            self.window = UIWindow(body: UIScreen.fundamental.bounds)
            self.window!.rootViewController = self.navigationController
            self.window!.makeKeyAndVisible()
        Third-partySdk.sharedInstance.openScreen()

And within the iOS SDK facet

let currentBundle = Bundle(for: kind(of: self))
        let cs = CustomScreen(nibName: "nibName", bundle: currentBundle)
        navigationController.setNavigationBarHidden(true, animated: true)
        navigationController.navigationBar.barStyle = .default
        navigationController.navigationBar.isTranslucent = false
        navigationController.pushViewController(cs, animated: true)

I’ve searched many StackOverflow solutions and different methods however couldn’t discover any answer.

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments