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

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

VotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.3.0, 2.4.0, 2.4.1
    • None

    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. blank.png
          27 kB
          Alex Ward
        2. noblank.png
          33 kB
          Alex Ward

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment