I created my own application on iPhone4 with iOS 4.3
in my bodyload application i'm m
document.addEventListener("pause", Game.prototype.pauseListener.bind(this), false); document.addEventListener("resume", Game.prototype.resumeListener.bind(this), false);
and in the same file I write a function
Game.prototype.resumeListener= function() { console.log("in resumeListener"); this.PauseGame(false); } Game.prototype.pauseListener= function() { this.PauseGame(true); }
this code works fine in Android and when I manually minimize the application, but when the application is interrupted by a voice incoming call, the application does not stop.
The main suspend and resume event does not fire.
I am using Phonegap1.4.1
source share