-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Status bar visible after focus into input / StatusBar.hide() not working #154
Comments
It seems that the status bar hide was working perfectly prior Android Software update. Thanks |
Can you fill out this information please, especially since potentially related to an android OS version. |
You are right here it is not working Android 9 / One UI version Working previous version I don't know |
I'm unable to reproduce this on my Android 9 device. I have copied your preferences and created a text field and a button. The button will hide the statusbar by calling I click the button and observe the statusbar hiding. I would advise to ensure that your My android device is: |
Ok thanks for the advice |
Also worth note that you're using an older version of the Cordova CLI, so when you simply run The latest version of the CLI is |
I am able to compile on CLI 9.0.0, and I still have the same issue : ( |
Can you provide me a sample reproduction app? I'll take a deeper look later tonight. https://github.com/apache/cordova-contribute/blob/master/create-reproduction.md |
Please note that the status bar is a little different from the traditional status bar as it contains two extra icons for gaming. see screenshot attached |
The UI in the picture is not the status bar. It's the navigation bar. The status bar is what appears on the top of the screen, e.g where the time and battery indicator is located. |
You are right, I managed to fix the issue on the "navigation bar" by doing this when I bring up the status bar and hide it again, it makes the navigation bar disappear. Also sorry for the misunderstanding |
I'm not sure why status bar APIs would be changing the navigation bar. That sounds like an unintended side effect to me and probably a bug. Cordova doesn't have any APIs that specifically targets the navigation bar. Although there is probably a third-party plugin available to do this. A quick search led me to older plugin but I cannot vouch if it works as it hasn't received an update for the last 4 years. |
Just tested it, and I can confirm it is not working. |
package.json
config.xml
This is what's going on on my side, maybe be relevant When an input element is focused status bar is displayed as well as keyboard. When an input element is blurred status bar doesn't go away. However, if I call |
I am also facing the same issue with Status Bar, the Status bar keeps overlapping the UI, until we use any input, once any input in App is being focussed out, the status bar starts behaving normally, i have tested this right from Android 8 until Android 13, real devices and simulators as well, but everywhere the problem remains the same. any help will be deeply appreciated. |
Bug Report
plugin name="cordova-plugin-statusbar" source="npm" />
preference name="StatusBarOverlaysWebView" value="true" />
preference name="StatusBarBackgroundColor" value="#000000" />
preference name="StatusBarStyle" value="lightcontent" />
Problem
When the user focus on an input text field, the keyboard appears but also the status bar
When trying to hide the status bar in focusin event with StatusBar.hide() the status bar is not hidding.
Also when calling StatusBar.hide() on focusout, the status bar is still not hiding.
Also when calling StatusBar.hide() with a little setTimeout 500ms the status bar is not hidding
What is expected to happen?
When using StatusBar.hide() the status bar should disappear
What does actually happen?
When using StatusBar.hide() the status bar is not hidding
Information
Please note that if an alert is invoked the status bar is disappearing
Command or Code
Environment, Platform, Device
Version information
Checklist
The text was updated successfully, but these errors were encountered: