incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (Commented) (JIRA)" <>
Subject [jira] [Commented] (CB-115) Pause/Resume events do not fire when locking/unlocking screen in ios < 5
Date Wed, 14 Mar 2012 15:14:43 GMT


Shazron Abdullah commented on CB-115:

ah it becomes much clearer now. pause/resume are for multitasking states (going into and out
of background). For iOS only, there are "resign" and "active" events that you can listen to,
for lock and unlock states respectively. I just tried the code below on an iPod Touch 2nd
Gen with iOS 4 (no multitasking), and it works for lock/unlock.

// register these after deviceready event fires        
document.addEventListener("resign", onResign, false);
document.addEventListener("active", onActive, false);

function onResign() {
    console.log("on resign");

function onActive() {
    console.log("on active");
> Pause/Resume events do not fire when locking/unlocking screen in ios < 5
> ------------------------------------------------------------------------
>                 Key: CB-115
>                 URL:
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.2.0
>         Environment: iOS < 5
>            Reporter: Avidan Chen
>            Assignee: Shazron Abdullah
>              Labels: iOS4
>             Fix For: 1.6.0
> I have tested this in the iOS simulator (4.3.2) and an actual device running iOS 4.2.1.
When locking the screen with the power button and then unlocking it, in iOS 5, the pause and
resume events fire properly.
> However, in iOS 4, these events do not fire.
> Anyone else seen this? Is there any fix on the way?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message