I am looking to add a native view to my Capacitor 4 application that can be opened by a Capacitor plugin. I currently have this working using the Capacitor viewController.bridge.present method, but it is presenting as a modal on top of the main CAPBridgeViewController.
Instead, I would like to have a native navigation stack and push a ViewController onto this stack using something like self.bridge?.viewController?.navigationController?.pushViewController(myNewVC). Is there a way to do this with Capacitor? Would I need to add a navigation stack natively somehow and subclass CAPBridgeViewController?
Any help here would be appreciated. If it is not possible this way, would this be a good use case for Portals? We have 95% of navigation in a web application, but there is one important screen that is fully native and it doesn’t seem it should be presented modally but as a new entry in a stack.