Javascript 离子状态栏不隐藏

Javascript 离子状态栏不隐藏,javascript,cordova,ionic-framework,phonegap-plugins,statusbar,Javascript,Cordova,Ionic Framework,Phonegap Plugins,Statusbar,我已经添加了插件Cordova插件状态栏。在我更新爱奥尼亚和科尔多瓦之前,它是有效的。更新后,它不工作。我完全困惑了,回到了旧版本,然后它也不工作了!请帮帮我,伙计们 if (window.StatusBar) { StatusBar.hide(); ionic.Platform.fullScreen(); } 这是我用来隐藏的代码 确保设置正确,然后尝试以下操作: $ionicPlatform.ready(function() { ionic.P

我已经添加了插件
Cordova插件状态栏
。在我更新爱奥尼亚和科尔多瓦之前,它是有效的。更新后,它不工作。我完全困惑了,回到了旧版本,然后它也不工作了!请帮帮我,伙计们

 if (window.StatusBar) {
        StatusBar.hide();
        ionic.Platform.fullScreen();
    }
这是我用来隐藏的代码

确保设置正确,然后尝试以下操作:

$ionicPlatform.ready(function() {
  ionic.Platform.fullScreen();
  if (window.StatusBar) {
    return StatusBar.hide();
  }
});
然后尝试将“全屏”类添加到您的body标签中

确保设置正确,然后尝试以下操作:

$ionicPlatform.ready(function() {
  ionic.Platform.fullScreen();
  if (window.StatusBar) {
    return StatusBar.hide();
  }
});

然后尝试将“全屏”类添加到body标签中

如果希望应用程序永久全屏,为什么不使用config.xml
如果你想让你的应用永久全屏,为什么不使用config.xml呢<代码>