My code is StatusBar.backgroundColorByHexString(’#2c3e50’); and before Beta 8 work perfectly.
Have you tried to remove the “#” it works for me
Still don’t work.
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);
Check the version of ionic-native in your package.json.
I’m not seeing any problems in my test.