Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
2.3.0, 2.4.0, 2.4.1
-
None
-
⇒ cordova platform ls
Installed platforms:
android 6.2.3
Available platforms:
blackberry10 ~3.8.0 (deprecated)
browser ~4.1.0
ubuntu ~4.3.4 (deprecated)
webos ~3.7.0⇒ cordova plugin ls
cordova-plugin-device 2.0.1 "Device"
cordova-plugin-ionic-keyboard 2.0.5 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 1.1.16 "cordova-plugin-ionic-webview"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.3.0 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"⇒ cordova --version
7.0.1⇒ cordova platform ls Installed platforms: android 6.2.3 Available platforms: blackberry10 ~3.8.0 (deprecated) browser ~4.1.0 ubuntu ~4.3.4 (deprecated) webos ~3.7.0 ⇒ cordova plugin ls cordova-plugin-device 2.0.1 "Device" cordova-plugin-ionic-keyboard 2.0.5 "cordova-plugin-ionic-keyboard" cordova-plugin-ionic-webview 1.1.16 "cordova-plugin-ionic-webview" cordova-plugin-splashscreen 5.0.2 "Splashscreen" cordova-plugin-statusbar 2.3.0 "StatusBar" cordova-plugin-whitelist 1.3.3 "Whitelist" ⇒ cordova --version 7.0.1
Description
On any version of cordova-plugin-statusbar past 2.2.3 I'm seeing that a call to `StatusBar.styleDefault()` will cause the status bar to disappear on Android, whereas on 2.2.3 and lower it is simply a no-op.
I made a github repo to demonstrate the problem - https://github.com/cthos/status-bar-bug . The relevant code is in the ionic component, inside of the onDeviceReady - https://github.com/cthos/status-bar-bug/blob/master/src/app/app.component.ts#L13.
Downgrading to the 2.2.3 version of the plugin resolves the issue and produces the noblank.png screenshot.
Those screenshots were taken on a Moto G4, but I've seen it on the Galaxy Line of Phones as well, so I don't think it's isolated to a particular version or type.