How to use the cordova-plugin-inappbrowser.inappbrowser function in cordova-plugin-inappbrowser

To help you get started, we’ve selected a few cordova-plugin-inappbrowser examples, based on popular ways it is used in public projects.

github MobileChromeApps / cordova-plugin-chrome-apps-identity / identity.js View on Github external
function launchInAppBrowser(authURL, interactive, callback) {
    var openInAppBrowser = require('cordova-plugin-inappbrowser.inappbrowser');
    var oAuthBrowser = openInAppBrowser(authURL, '_blank', 'hidden=yes');
    var success = false;
    var timeoutid;
    oAuthBrowser.addEventListener('loadstart', function(event) {
        if (success)
        if (timeoutid)
            timeoutid = clearTimeout(timeoutid);
        var newLoc = event.url;

        // When the location address starts with our redirect URL, we're done.
        if (newLoc.indexOf(exports.getRedirectURL()) === 0) {
            success = true;

        if (success) {


Cordova InAppBrowser Plugin

Latest version published 2 years ago

Package Health Score

75 / 100
Full package analysis

Popular cordova-plugin-inappbrowser functions

Similar packages