App LifeCycle -> onDestroy?

Hey guys, what I want to know is that if there’s a way of knowing that the user is quitting the whole app, and not just a view. In android we have something like an onDestroy method.

you mean;

No, want to know that is going to happen, like in views we have a ionicVier:beforeLeave action, I want it for the whole app.