Prevent Splash Screen from showing after returning from background

I am developing iOS App.

Sometimes my app shows the splash screen while app return from background to foreground.

It shows for half second or 1-second splash screen that I don't want to display user.


Steps to re-produce the issue:

  • Start app ,splash screen shows for approx. 3 seconds and app starts.
  • Press home button, app goes to background.
  • Bring app back from background (double clicking home screen and chosing it), shows the splash for half a second or so, and then the app goes back up .


How to Prevent Splash Screen from showing after returning from background.

Replies

Sounds like your app is being exited while suspended. Perhaps your app eats up a lot of memory and is thus highly likely to be terminated? If so, there are numerous videos from past WWDC years about keeping your app as lean as possible.


Or, you are running lots of other apps that competing for memory. In this case, even if your own app does it's best with memory management, there are limits.


Also, when you say 'splash', do you mean the launch screen? Or does your app present some screen for a period of time when it's launched? Note that it's not advisable to have splash screens. Your app should return to its last state as quickly as possible.