Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-13891

StatusBar.styleDefault() causes status bar to vanish on Android.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.3.0, 2.4.0, 2.4.1
    • Fix Version/s: None
    • Labels:
    • Environment:

      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.

        Attachments

        1. noblank.png
          33 kB
          Alex Ward
        2. blank.png
          27 kB
          Alex Ward

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              cthos Alex Ward
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: