Is it possible to prevent an Ionic 2 app from “reloading” after the app has been inactive (i.e. paused / minimized) for an extended period of time (e.g. 2hrs +)
I have a screen on my app where a user can enter data during an experiment. This experiment can take several hours to record the required data, so there may be long periods of inactivity where the user does not use the app and may let their phone go to sleep and/or “minimize” (i.e. not close) the app and run other apps. The problem I am facing is that if a couple of hours go by and the user “maximizes” the app again (i.e. selects it again to bring it to the foreground) then the app will have a tendency to “reload” itself, I.e. splash screen and home page a re-displayed, etc. This results in the loss of any of the data entered on the data entry screen with no ability to recover it (as it was never “saved”)
Is there any way to guarantee that when the user “maximizes” the app again that it doesn’t reload itself and stays on the data entry screen?