I migrated from beta11 to RC0 and now RC1, added crosswalk and I do not have the same behavior with “StatusBar”.
StatusBar appears blue with white text, whereas with the beta 11 was white text on black background.
When splashscreen is show, statusbar is black with white text (so it’s ok).
I use the following line (as before):
this.platform.ready (). then (() => {
// Okay, so the platform is ready and our plugins are available.
// Here you can do Any native Higher level things you might need.
StatusBar.styleDefault ();
Someone has the same problem or a solution to change color of statusbar with android?
Edit: Same result with StatusBar.styleDefault() or without.
I reinstalled the plugins without success. => KO
I removed/added Android Platform => KO
With a blank project “ionic start mySideMenu sidemenu --v2” without crosswalk=> StatusBar works as expected
with starter project:
i add crosswalk: “ionic plugin add cordova-plugin-crosswalk-webview --save”
ionic android run => KO, status bar is blue
resinstalled Java, JDK, SDK => KO
test with crosswalk API 21 Beta or API 20 or API 17 => KO
Switching from last Beta to RC.0 I noticed the same change with Xwalk when I was running my app on my real device Nexus 5X
To fix it and apply the color I want I do the following:
initializeApp() {
this.platform.ready().then(() => {
StatusBar.styleDefault();
let isAndroid:boolean = this.platform.is('android');
if (isAndroid) {
StatusBar.backgroundColorByHexString("#000000");
}
});
}
Observations: This seems to work fine most of the time. However I noticed sometimes when the app is put in idle in a specific way (like using hardware home button) and opened again, then this color may be not applied again. I’ve not yet invest time to analyze it.
Got the same problem. Got the backgroundColorByHexString function working by setting a 1 second timeout but the blue color still appears once you open the app switcher.