StatusBar stop working after update to Ionic2 Beta8


#1

My code is StatusBar.backgroundColorByHexString(’#2c3e50’); and before Beta 8 work perfectly.


#2

Have you tried to remove the “#” it works for me


#3

Still don’t work. :frowning:


#4

You are testing on device, emulator or serve ?

Strange i’m currently develop an app with the last beta and it works…Have you the import StatusBar from ionic-native

Here’s my app.ts

import {Component} from "@angular/core";
import {Platform, ionicBootstrap} from 'ionic-angular';
import {StatusBar} from 'ionic-native';
import {TabsPage} from './pages/tabs/tabs';

@Component({
  template: '<ion-nav [root]="rootPage"></ion-nav>',
})
export class MyApp {
  rootPage: any = TabsPage;

  constructor(platform: Platform) {
    platform.ready().then(() => {
      // Okay, so the platform is ready and our plugins are available.
      // Here you can do any higher level native things you might need.
      StatusBar.backgroundColorByHexString("A30A00");
    });
  }
}

ionicBootstrap(MyApp);

#5

Check the version of ionic-native in your package.json.
I’m not seeing any problems in my test.