While implementing the background behaviour of an app, I learned that there is a difference between the following app states:
-being suspended
-being terminated by the system
-being terminated by the user (force quit)
I can simulate app suspension by pushing the home button and moving the app to the background. I can force quit the app by double-tapping the home button and flicking the app out of the screen in the app switcher.
But how can I reliably simulate the app being terminated by the system?
I need this to test a few background features that seem to behave differently when the app is terminated by the system or while it is still suspended (and do not do anything while the app is force quit).
Thanks!