function onWindowLoad() {
    if(ionic.Platform.isCordova()) {
      // the window and scripts are fully loaded, and a cordova/phonegap
      // object exists then let's listen for the deviceready
      document.addEventListener("deviceready", onPlatformReady, false);
    } else {
      // the window and scripts are fully loaded, but the window object doesn't have the
      // cordova/phonegap object, so its just a browser, not a webview wrapped w/ cordova
      onPlatformReady();
    }
    window.removeEventListener("load", onWindowLoad, false);
  }
@ngdoc method
@name ionic.Platform#fullScreen
@description
Sets whether the app is fullscreen or not (in Cordova).
@param {boolean=} showFullScreen Whether or not to set the app to fullscreen. Defaults to true.
@param {boolean=} showStatusBar Whether or not to show the device's status bar. Defaults to false.