I created an android & iOS application with cordova and ionic. I added a listener to the pause event and it fires when another application interrupts mine, for example when I receive a call via skype or when I tap the home button on a iOS device.
The problem is that on my iphone, if I receive a phone call the pause event doesn't fire! It's driving me crazy! why a phone call is different from interruptions by other apps?
In android it works correctly.
Any idea?
Hooray!!
this is the solution: https://issues.apache.org/jira/browse/CB-115?jql=project%20%3D%20CB%20AND%20text%20~%20pause
For ios only there are also the 'resign' and 'active' events. Be careful that some actions fire the 'pause' AND the 'resign' events.
The resign and active events are actually documented in the cordova docs but I didn't notice it.