pause
The pause event fires when the native platform puts the application into the background, typically when the user switches to a different application.
Quick Example
document.addEventListener("pause", onPause, false);
function onPause() {
// Handle the pause event
}
iOS Quirks
In the pause handler, any calls to the Cordova API or to native plugins that go through Objective-C do not work, along with any interactive calls, such as alerts or console.log(). They are only processed when th