title: Statusbar plugin color change not working on android // org.apache.cordova.statusbar
body: <p>I wanted to add the statusbar plugin, so I can change the android's statusbar color. The only problem is: it doesnt work. I've tried several things, but it still don't work.
  This is my HTML, as you can see I tried several things.</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script&gt;
  function color() {
  StatusBar.backgroundColorByHexString("#ECF0F1");
  }
  function colorc() {
  if (StatusBar.isVisible) {
  document.getElementById("p").style.color = "green";
  }
  else {
  document.getElementById("p").style.color = "red";
  }
  }
  function changer() {
  document.getElementById("p").style.color = "pink";
  }
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body onload="color();"&gt;
  &lt;p id="p"&gt;hi&lt;/p&gt;
  &lt;button onclick="StatusBar.hide();"&gt;hide&lt;/button&gt;
  &lt;button onclick="StatusBar.show();"&gt;show&lt;/button&gt;
  &lt;button onclick="color();"&gt;color&lt;/button&gt;
  &lt;button onclick="colorc();"&gt;color check&lt;/button&gt;
  &lt;button onclick="changer();"&gt;hi&lt;/button&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>And this is my config</p>
  
  <pre><code>&lt;widget xmlns="http://www.w3.org/ns/widgets"
  xmlns:gap="http://phonegap.com/ns/1.0" id="com.not.working.bar" 
  version="1.0.0"&gt;
  &lt;name&gt;Statusbar&lt;/name&gt;
  &lt;description&gt;&lt;/description&gt;
  &lt;gap:plugin name="org.apache.cordova.statusbar" version="0.1.4" 
  source="pgb"/&gt; 
  &lt;preference name="StatusBarBackgroundColor" value="#ECF0F1" /&gt;
  &lt;preference name="phonegap-version" value="3.0.0"/&gt;
  &lt;preference name="orientation" value="default"/&gt;
  &lt;preference name="target-device" value="universal"/&gt;
  &lt;preference name="android-minSdkVersion" value="21"/&gt;
  &lt;preference name="android-installLocation" value="auto"/&gt;
  &lt;access origin="*"/&gt;
  &lt;/widget&gt;
  </code></pre>
  
  <p>The only thing that doesn't work is the color. I can hide/show the bar, check if it's showing or hiding, but I can't manage to change the color. PLEASE HELP</p>
  
  <p><a href="https://github.com/apache/cordova-plugin-statusbar" rel="nofollow">https://github.com/apache/cordova-plugin-statusbar</a></p>