How to run the application in the background when it is closed

A post was split to a new topic: How to manage the back button in ionic 2