Ionic 4 Statusbar not working

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.

But can you please tell me how to do that.

    private platform: Platform,
    private splashScreen: SplashScreen,
    private statusBar: StatusBar,

    this.platform.ready().then(() => {