[ 
https://issues.apache.org/jira/browse/CB-13891?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alex Ward updated CB-13891:
---------------------------
    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|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.

  was:
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|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.]

 

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.


> StatusBar.styleDefault() causes status bar to vanish on Android.
> ----------------------------------------------------------------
>
>                 Key: CB-13891
>                 URL: https://issues.apache.org/jira/browse/CB-13891
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugin-statusbar
>    Affects Versions: 2.3.0, 2.4.0, 2.4.1
>         Environment: ⇒ 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
>            Reporter: Alex Ward
>            Priority: Major
>              Labels: android
>         Attachments: blank.png, noblank.png
>
>
> 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|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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to