Cordova.inAppBrowser.open error

Cordova.inAppBrowser.open error

  

I am developing a mobile app on an android device. For login purposes we use a java script code which opens a remote url to get a login token (they don't have a rest interface)

At first it worked fine, but now I get a "Cannot call method 'open' of undefined" on the following line of code

var loginWindow =  cordova.InAppBrowser.open(login_url, '_blank', 'location=yes,clearsessioncache=yes');

I did build all the code into a webblock, that webblock is used by another app also which still works on the same device. Any clue what could go wrong here ? 


Solution

And after some searching my collegue Parma found the problem, a missing plugin setting in the exensibillity configurations setting on the eSpace : 

{
    "plugin":
    {
        "url": "https://github.com/OutSystems/cordova-plugin-inappbrowser.git#1.7.0-os"
    }
}

Solution