Plugin not working


#1

I’ve been trying to solve a statusbar plugin problem for days now and i cannot get it to work. It must be a simple error but i don’t see it.

`import {App, Platform} from ‘ionic-angular’;
import {StatusBar} from ‘ionic-native’;
import {TabsPage} from ‘./pages/tabs/tabs’;
import {DataService} from ‘./data.service’;

@App({
template: ‘<ion-nav [root]=“rootPage”>’,
providers: [DataService],
config: {} // http://ionicframework.com/docs/v2/api/config/Config/
})
export class MyApp {
rootPage : any = TabsPage;

constructor(platform: Platform, dataService : DataService) {
    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.backgroundColorByName('white');
    });
}

}
`

I tried every tutorial/advice i found on internet but the plugin doesn’t work when i deploy the app in my lg android 5 phone (or any other phone).
I installed ionic-native and the cordova-plugin-statusbar already… help?

UPDATE:
I just tried Hide() method, and it does work. mmmm, interesting…