user8231819
user8231819

Reputation:

Previous splash screen shows for a second in IONIC app

I just created an ionic app and previously I added a splash screen and that was working fine. Now I added another splash screen in resources using the command

ionic Cordova resources ios --splash

now when I checked every splash screen in updated.

After I compiled and build the iOS app and tested it shows the previous Splashscreen for a second and then updated splash screen is shown and moved to my home screen.

I removed the platform and added again. reupdated with new splash screen still, this issue exists! WHy does this happen?

Upvotes: 2

Views: 3392

Answers (3)

YamsDev
YamsDev

Reputation: 11

For all future developers facing this issue since I see no post with the correct solution:

There is a folder that for me was called res/screen/ios which contained the old splash screen and I never replaced that file. Removing the file in that folder from my application, adding the new image in that folder, and changing the name of the new image to 'Default@2x~universal~anyany.png' resolved this issue.

Upvotes: 1

jcesarmobile
jcesarmobile

Reputation: 53301

iOS devices first show a launch image and then the actual splash image from the plugin. The image is the same, so you won't notice this.

But the launch image is cached by the devices and simulators, so if you change the splash image, it will still show the old launch image.

The solution is just to delete the app (no need to power off and on again), and it won't happen in production versions.

Upvotes: 3

user8231819
user8231819

Reputation:

Finally got the solution.

  1. Delete your app from the device
  2. Power down the device
  3. Power up the device, install and launch the app.

It's not my app issue. I think it wont happen in production version.

Upvotes: 20

Related Questions