oOnez
oOnez

Reputation: 897

InAppBrowser (Apache cordova plugin) does not open in Windows 8.1

I am developing an app using visual studio tools for apache Cordova (Cordova CLI : 4.3.1) and AngularJS.

It uses InAppBrowser plugin via ngcordova library. Here is my code:

 var url = "http://myurl.com";
 var target = "_blank";
 var options = {
            location: 'no',
            toolbar:'no',
            hidden: 'no'
        };

 document.addEventListener('deviceready', function () {

            var browserRef = $cordovaInAppBrowser.open(url, target, options).then(function (event) {
            }, function (error) {
                console.log("Error: " + error.message);
            });

        }, false);

When i deploy the app on windows 8.1 (on my local machine), i can see on debugger that a webview is created without error, and loadstop event is fired. but it is not displayed, i can't see the external page.

It is working fine on iOS. I cannot try on android for now.

Any help would be greatly appreciated.

Upvotes: 3

Views: 863

Answers (1)

Ranjith Varma
Ranjith Varma

Reputation: 473

can you try replacing

$cordovaInAppBrowser.open(.........

With

window.open(..........

Upvotes: 1

Related Questions