When I try to exit the app with navigator.app.exitApp();
the app exits succesfully. But when I go to the task overview (with long pressing the home button) on my Galaxy s3, it still shows the last page that I was on when the app was on.
It works properly, because when I launch the app again from the task overview, it launches the app again as cold start. The problem is that the task overview reveals confidential information and I do not want that.
The work around that I have now is that the app first navigates to another page, without confidential information, just before calling navigator.app.exitApp();
. However this results in a quick navigation between screens, and gives a bad user experience.
Is there any way to remove the app from the task overview when exiting the app in Cordova, or is this just how Samsung or the Galaxy series works?