I create new App with ionic start myApp
. When I first use the app, there is a splasscreen like the follwing image
I click the backbutton to exit the app with the coding navigator.app.exitApp()
, and then, when I click the app icon to start the app again, there is no splashscreen, like the following image
The platfor is android.
So, what’s the problem? What should I do?
Yeah, I have tried the splashcreen plugin, and the splashcreen can show after I secondly start the app. But I meet the problem on some phone, which is that the splashcreen can’t not hide when I secondly start the app. When I use chrome to check the app, I find the index.html is not loaded.
I found the solution. I made a android native app with Java, and accomplished the exit with double clicking back button. I realized there is System.exit(0)
after this.finish()
. So I add exit(0)
after ionic.Platform.exitApp();
. And the problem is been soluted.