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

StatusBar.show() doesn't work on Windows Phone 8.1

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Environment:

      windows@4.1.0 platform, Windows Phone 8.1 device (emulator), Cordova 5.3.2

      Description

      The status bar is not displayed in Windows Phone 8.1 (emulator).

      Reproduce as follows:

      1. Run the commands:
      cordova create test
      cd test
      cordova platform add windows
      cordova plugin add cordova-plugin-statusbar

      2. Edit www\js\index.js, add the lines below just after "app.receivedEvent('deviceready');":

      StatusBar.overlaysWebView(false);
      StatusBar.styleDefault();
      //StatusBar.backgroundColorByHexString("#C0C0C0");
      StatusBar.show();
      

      3. Run command:
      cordova build windows

      4. Using VisualStudio (2015), open the platforms\windows\CordovaApp.sln solution and set "CordovaApp.Phone (Windows Phone 8.1)" as the Startup Project. Windows. Then run using "Emulator 8.1 WVGA".

      When the CordovaApp has started and "deviceready" has been fired, the status bar is gone.

        Attachments

        1. screenshot.png
          4 kB
          Vladimir Kotikov

          Activity

            People

            • Assignee:
              vladimir.kotikov Vladimir Kotikov
              Reporter:
              minduch Christopher Mindus
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: