How apache/cordova-plugin-inappbrowser works
Cordova InAppBrowser opens web content in an app-managed browser view, with options, controls, events, and content-injection APIs. The principal workflow is an app calling cordova.InAppBrowser.open(), which uses Cordova’s exec bridge to reach a platform implementation that loads and presents the requested page; _system instead opens the system browser. The graph includes Android, iOS, and browser implementations and the documented event/injection capabilities. Some iOS implementation details and bridge wiring are unsampled, so those links are marked unverified.
Main entry points: CDVWKInAppBrowser.m iOS browser plugin · inappbrowser.js InAppBrowser API · InAppBrowser.java Android browser plugin · InAppBrowserProxy.js Browser proxy
Components 15
Plugin API
- InAppBrowser API
www/inappbrowser.js - Cordova exec
- Browser events
www/inappbrowser.js - Script and CSS injection
www/inappbrowser.js
Android runtime
- Android browser plugin
src/android/InAppBrowser.java - Browser dialog
src/android/InAppBrowserDialog.java - Chrome client
src/android/InAppChromeClient.java
iOS runtime
- iOS browser plugin
src/ios/CDVWKInAppBrowser.m - iOS options
src/ios/CDVInAppBrowserOptions.m - Web UI delegate
src/ios/CDVWKInAppBrowserUIDelegate.m - Navigation controller
src/ios/CDVInAppBrowserNavigationController.m
Browser runtime
- Browser proxy
src/browser/InAppBrowserProxy.js
Other components
- Cordova app
- In-app browser view
- System browser
Connections 16
- Cordova app → InAppBrowser API: opens URL
README.md - InAppBrowser API → Cordova exec: invokes actions
www/inappbrowser.js - Cordova exec → Android browser plugin: dispatches
- Cordova exec → iOS browser plugin: dispatches
- Cordova exec → Browser proxy: dispatches
- Android browser plugin → Browser dialog: uses dialog
src/android/InAppBrowser.java - Android browser plugin → Chrome client: uses client
src/android/InAppBrowser.java - Android browser plugin → In-app browser view: presents browser
- iOS browser plugin → iOS options: parses options
- iOS browser plugin → Web UI delegate: uses delegate
- iOS browser plugin → Navigation controller: uses controller
- iOS browser plugin → In-app browser view: presents browser
- Browser proxy → In-app browser view: renders iframe
src/browser/InAppBrowserProxy.js - InAppBrowser API → Browser events: handles events
www/inappbrowser.js - InAppBrowser API → Script and CSS injection: requests injection
www/inappbrowser.js - Cordova app → System browser: opens with _system
README.md