I have an application that plays audio. I need to add an event that checks if the application is minimized and stop the audio if it is so. All of the responses I found were given for Cordova, where the following Eventlistener works just fine:
document.addEventListener("pause", onMinimizedApplication());
My question is: Is there a way to determine whether an application is minimized at the moment ?