【问题标题】:Ionic 3 keyboard status bar showing after keyboard activeIonic 3 键盘状态栏在键盘激活后显示
【发布时间】:2018-02-10 19:34:22
【问题描述】:

我目前正在使用 Ionic 3,但我发现了一个非常奇怪的错误(?)。在 android 上,我在 config.xml 和 app.component.ts 文件中使用全屏选项

config.xml:

<preference name="FullScreen" value="true" />

app.component.ts:

keyboard.disableScroll(true);
keyboard.hideKeyboardAccessoryBar(true);
this.androidFullScreen.isImmersiveModeSupported()
    .then(() => this.androidFullScreen.immersiveMode())
    .catch((error: any) => console.log(error));
statusBar.hide();
statusBar.overlaysWebView(false);

在我开始使用输入之前,它运行良好,当键盘出现时,状态栏也可见,直到最小化应用程序并再次打开。

这是关于问题的 gif:

【问题讨论】:

    标签: android ionic-framework keyboard ionic3 statusbar


    【解决方案1】:

    我想通了。

    所以问题是cordova插件没有正确安装,并且由于某些权限问题而引发错误。如果您的应用程序也发生这种情况,只需运行以下命令:

    ionic cordova build android --verbose
    

    这也会抛出权限错误,但是会输出你没有正确权限的文件夹并在文件夹上运行后:

    sudo chmod 755
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-08-29
      • 2012-06-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-08-16
      • 2012-09-21
      相关资源
      最近更新 更多