I have an issue with the spinner of the splashscreen, it’s not centered on the screen. As you can see on the screenshot, it’s stuck on the top left corner.
It works fine with Android. I tried on iOS 9.3 and 10.3 : same issue. I also tried different version of the cordova splashscreen plugin (4.0.1 and 4.0.3) : same issue.
Thanks, but the “SplashMaintainAspectRatio” property is not working. Hiding it obviously works, so if I can’t find any solution that is what I will do.
I would create a new project (ionic start blank blank), build it once to check the spinner is correct, place your resources files in there, run ionic cordova resources, build again to check if still correct. If yes, compare whole projects and see what is different (besides your custom code of course).
I’m getting closer to the origin of the issue. I removed the following line in the app.component.ts file :
Splashscreen.hide();
And I could see that the spinner goes back to the center of the splash screen once the platform is ready (this.platform.ready().then). Before that, the spinner is stuck at the top left corner. Do you have an idea ?
Yes, that’s weird. I built the project with the ‘–prod’ tag, and the spinner shows up at the wrong place like 2 seconds before it moves to the center, when I build in debug mode, it’s more like 7 seconds. It looks like there is something wrong during the initialization, but I can’t find what. I think I will have to hide the spinner
Ha, just realized, now I am in the same boat with a project I just built on iOS for the first time
Identical to what you describe the spinner starts out in the top left corner, then jumps to its correct position after some time before the app loads and the splashscreen disappears.