StatusBar style adapted based on bar-header background color



I’m currently working on an app that have different header color, depending on the current view. Header can sometime be white, sometime black.

I have the StatusBar plugin installed but can’t find information about how the StatusBar (which is in overlay mode) can adapt to the header bg color.

Some native app, like the PayPal one currently do it.

Is it possible with Ionic or is can’t do to limitation?




Just put StatusBar.styleLightContent(); OR StatusBar.styleDefault(); inside the controller you want each color.

It work for me! Good luck!!