Ionic/Cordova iOS - invoke function on app re-open

Is it possible to invoke a function after applications is re-opened (closed with home button, not closed as a process)?

Write this on you function Run

document.addEventListener("resume", function () {
    // functions
});

And if you can help me…