[
https://issues.apache.org/jira/browse/CB-14027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16519926#comment-16519926
]
GearĂ³id M commented on CB-14027:
--------------------------------
I think this is working as expected, though the behaviour is a little bit
confusing. What you're seeing isn't technically an empty status bar, but a
black status bar with black text.
The docs describe `styleDefault` as "Use the default statusbar (dark text, for
light backgrounds)." So it actually only sets the text colour, and does not
change the status bar's background colour. If you want a black status bar with
light text (the Android "default"), you need to first set the colour manually,
and then set the text to be light.
{code:javascript}
StatusBar.backgroundColorByHexString('#000000');
StatusBar.styleLightContent();
{code}
> cordova-plugin-statusbar default style isn't work in Huawei and 360 and some
> android phone
> ------------------------------------------------------------------------------------------
>
> Key: CB-14027
> URL: https://issues.apache.org/jira/browse/CB-14027
> Project: Apache Cordova
> Issue Type: Bug
> Components: cordova-plugin-statusbar
> Affects Versions: 2.4.1
> Reporter: miao
> Priority: Major
> Attachments: image-2018-04-12-12-18-38-075.png,
> image-2018-04-16-10-25-40-198.png
>
>
> I used the latest version of cordova-plugin-statusbar with the default style,
> but the in HuaWei, 360 and some android phone, the status bar's information
> disappeared, only the black background bar here.
> !image-2018-04-12-12-18-38-075.png|width=199,height=363!
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]