How to run custom iOS app in background for longer period of time? If not then is there any way to know if app is alive or not?

How can i achive app running in the background or check if app is alive/present?