I want to make an app like Forest (see the link below), is there a way i can make this in unity ?

how will i know if apps are running in background ???
will i know if the application is paused ???

There is a function called OnApplicationPause