You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-7Lines changed: 22 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,10 +71,6 @@ Although `window.open` is in the global scope, InAppBrowser is not available unt
71
71
console.log("window.open works well");
72
72
}
73
73
74
-
Report issues with this plugin on the [Apache Cordova issue tracker](https://issues.apache.org/jira/issues/?jql=project%20%3D%20CB%20AND%20status%20in%20%28Open%2C%20%22In%20Progress%22%2C%20Reopened%29%20AND%20resolution%20%3D%20Unresolved%20AND%20component%20%3D%20%22cordova-plugin-inappbrowser%22%20ORDER%20BY%20priority%20DESC%2C%20summary%20ASC%2C%20updatedDate%20DESC)
75
-
76
-
77
-
## <aid="reference">Reference</a>
78
74
## Installation
79
75
80
76
cordova plugin add cordova-plugin-inappbrowser
@@ -115,8 +111,9 @@ instance, or the system browser.
115
111
Android supports these additional options:
116
112
117
113
-__hidden__: set to `yes` to create the browser and load the page, but not show it. The loadstop event fires when loading is complete. Omit or set to `no` (default) to have the browser open and load normally.
118
-
-__clearcache__: set to `yes` to have the browser's cookie cache cleared before the new window is opened.
119
-
-__clearsessioncache__: set to `yes` to have the session cookie cache cleared before the new window is opened.
114
+
-__beforeload__: set to `yes` to enable the `beforeload` event to modify which pages are actually loaded in the browser.
115
+
-__clearcache__: set to `yes` to have the browser's cookie cache cleared before the new window is opened
116
+
-__clearsessioncache__: set to `yes` to have the session cookie cache cleared before the new window is opened
120
117
-__closebuttoncaption__: set to a string to use as the close button's caption instead of a X. Note that you need to localize this value yourself.
121
118
-__closebuttoncolor__: set to a valid hex color string, for example: `#00ff00`, and it will change the
122
119
close button color from default, regardless of being a text or default X. Only has effect if user has location set to `yes`.
@@ -138,6 +135,7 @@ instance, or the system browser.
138
135
139
136
-__usewkwebview__: set to `yes` to use WKWebView engine for the InappBrowser. Omit or set to `no` (default) to use UIWebView. Note: Using `usewkwebview=yes` requires that a WKWebView engine plugin be installed in the Cordova project (e.g. [cordova-plugin-wkwebview-engine](https://github.com/apache/cordova-plugin-wkwebview-engine) or [cordova-plugin-ionic-webview](https://github.com/ionic-team/cordova-plugin-ionic-webview)).
140
137
-__hidden__: set to `yes` to create the browser and load the page, but not show it. The loadstop event fires when loading is complete. Omit or set to `no` (default) to have the browser open and load normally.
138
+
-__beforeload__: set to `yes` to enable the `beforeload` event to modify which pages are actually loaded in the browser.
141
139
-__clearcache__: set to `yes` to have the browser's cookie cache cleared before the new window is opened
142
140
-__clearsessioncache__: set to `yes` to have the session cookie cache cleared before the new window is opened. For WKWebView, requires iOS 11+ on target device.
143
141
-__cleardata__: set to `yes` to have the browser's entire local storage cleared (cookies, HTML5 local storage, IndexedDB, etc.) before the new window is opened
@@ -219,6 +217,7 @@ The object returned from a call to `cordova.InAppBrowser.open` when the target i
219
217
-__loadstop__: event fires when the `InAppBrowser` finishes loading a URL.
220
218
-__loaderror__: event fires when the `InAppBrowser` encounters an error when loading a URL.
221
219
-__exit__: event fires when the `InAppBrowser` window is closed.
220
+
-__beforeload__: event fires when the `InAppBrowser` decides whether to load an URL or not (only with option `beforeload=yes`).
222
221
223
222
-__callback__: the function that executes when the event fires. The function is passed an `InAppBrowserEvent` object as a parameter.
224
223
@@ -232,7 +231,7 @@ function showHelp(url) {
232
231
233
232
var target ="_blank";
234
233
235
-
var options ="location=yes,hidden=yes";
234
+
var options ="location=yes,hidden=yes,beforeload=yes";
0 commit comments