I’m using the resume and pause events from ionic. But I have the problem, that both events are fired at the end of the pause.
I receive the pause event only some miliseconds before the resume event.
Here is my configuration:
document.addEventListener("pause", function(){
console.log("APP PAUSE");
},false);
document.addEventListener("resume", function(){
console.log("APP RESUME");
},false);
***..two of my results:***
"APP PAUSE","2015-07-09 16:39:31.389000"
"APP RESUME","2015-07-09 16:39:31.392000"
"APP PAUSE","2015-07-09 16:41:29.437000"
"APP RESUME","2015-07-09 16:41:29.440000"
Could it be that i miss something or has anybody the same issue?
I expected that the pause event is fired at the begin of the pause and not at the end
Or did I missunderstood that
Thanks to anybody for some helpfull answer.
Simon