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

backgroundColorByHexString doesn't work after tap backbutton on Android

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Mac OS X 10.10.5
      Cordova 6.0.0
      Android 5.1
      cordova-plugin-statusbar 2.0.0/2.1.2

    • Important

    Description

      The deviceready event is fired on re-open app after close app with backbutton on Android, but method backgroundColorByHexString doesn't work.

      I don't test with other methods of window.StatusBar.

      document.addEventListener("deviceready", function () {
          if (window.StatusBar && window.cordova && window.cordova.platformId == 'android') {
              window.StatusBar.backgroundColorByHexString("#141414");
          }
      }, false);
      

      Tested with cordova-plugin-statusbar 2.0.0 and 2.1.2

      Attachments

        Activity

          People

            Unassigned Unassigned
            leonardobazico Leonardo Bazico
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: