I am working on an app and using status bar native. When I open the app the status bar is not working on the home page. But when we return to the home page from a different page then the status bar is working.
Make sure your call to any Cordova plugin occurs after the platform is ready.
Thanks,
But can you please tell me how to do that.
1 Like
private platform: Platform,
private splashScreen: SplashScreen,
private statusBar: StatusBar,
this.platform.ready().then(() => {
this.splashScreen.hide();
this.statusBar.backgroundColorByName('yellow');
});