Splash Screen is showing only first time

I have included splash screen on my ionic android app, but it loads only once, on :scream: first time!! If I clear all the data of the app , it loads again!! So problem is how can i load splash screen everytime? without resetting the app data?

Not sure if you can bring the splash screen up every time without exiting the app. You might could save your state to local storage along with the data and bring the user back to the same page.

Android discourages exiting the app though.

1 Like

There was an issue posted on apache.org regarding this problem.

If you closed the app by pressing the back button the splash screen wouldn’t show the next time but if you killed the app via last used applications it worked fine.

Please check it and, if this is the case, update your plugin to the last version and add the next line to your project’s config.xml file:

<preference name="SplashShowOnlyFirstTime" value="false" />

Source: https://issues.apache.org/jira/browse/CB-9374

2 Likes

Exactly, i am facing this problem. Thanks for the reply. :slightly_smiling:

Thanks for this solution!

This is still how I needed to fix it in version 4.0.1