Wrapping website in Ionic and capturing certain paths?


I’m on a project where we want to wrap our website in an mobile app, but replace a few of the pages with native functionality.

I’ve been looking into the cordova-plugin in-app-browser.
Doesn’t seem to support the needed functionality to capture paths. It does have a few events that tells me a page is being loaded, but no way of stopping it.
It also doesn’t limit access to a single domain once it’s been opened. I tried google.com and it allowed me to navigate to all pages in the search result, even though only google.com was white-listed in my config.xml.

I’ve also tried an IFrame but cross-site issues makes this impractical.

We could of cause try to patch in-app-browser, but is there a better way to do it?

  • Morten