InAppBrowser (Apache cordova plugin) not opening on Windows 8.1

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

It uses the InAppBrowser plugin through the 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 application on Windows 8.1 (on my local machine), I can see in the debugger that the webview is created without error and the loadstop event is fired. but it doesn't show, I can't see the external page.

It works great on iOS. I can't try android at the moment.

Any help would be greatly appreciated.

+3


source to share


1 answer


try to replace

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

      



FROM

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

      

+1


source







All Articles