Window.open

i am building a simple phonegap app all what i need is when the app launches it automatically navigates to a link

onDeviceReady: function() {
    window.open("https://google.com","_self");
        app.receivedEvent('deviceready');
    },

this is the code i am using in the onDevice Ready function i call window.open when i use ionic view app and phonegap developer app to test the app on my android device it works very fine but when i upload the zip file to phonegap build i just see a blank white page when the app starts and does not load anything does anybody have any idea why is this happening

find your app.js and try

.run(function($ionicPlatform) {
  $ionicPlatform.ready(function() {

 window.open("https://google.com","_self");
        app.receivedEvent('deviceready');


    // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
    // for form inputs)
    if(window.cordova && window.cordova.plugins.Keyboard) {
      cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
    }
    if(window.StatusBar) {
      StatusBar.styleDefault();
    }
  });
});

In addition with @triniwiz suggestion, I highly recommend that you also use this plugin in to your app.

I think you also add whitelist plugins to access external urls in ionic