How do you test how your app will behave when it is suspended?
When you run your app within the debugger, life-cycle events are suspended. But you can use the “debug location” toolbar to force events to occur. Find the debug location toolbar under:
Now you can test life cycle events such as “Suspend”, “Resume” and “Suspend” and “Shutdown”