I am working on my first Ionic App. It is on Ionic 5. I run it with Capacitor.
There, for the app splash screen, I am using the ionic native splash screen plugin. I have my splash images setup and they are shown fine. However, I think the splash screen is shown for a predefined amount of seconds. Am I correct with that statement?
Now my problem is, in low end devices, I get a empty white screen after splash screen disappears. Then only the home screen is shown. My understanding is splash screen disappears while the app is getting loaded. I don’t get that white screen in the devices which can be considered as to have better performances since they load the app faster.
In my app module,
import { SplashScreen } from '@ionic-native/splash-screen/ngx';
initializeApp() {
this.platform.ready().then(() => {
this.loadConfig();
this.statusBar.styleDefault();
this.splashScreen.hide();
});
}
Now, I think I need to configure the splash screen settings. But where and how? and after what event I should hide it?
I have seen in questions and answers that configuration should be done in config.xml for apps with Cordova. But where in Capacitor?