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-497) online and offline events are not being fired in 1.6.0
Date Thu, 19 Apr 2012 18:54:40 GMT


Shazron Abdullah commented on CB-497:

No it's nothing to do with the new fixes, it's iOS. You cannot show any interactive elements
immediately during pause/resume, they will hang your app (similarly when launched from a protocol
handler). Wrap any content in your resume handler with a setTimeout with a timeout value of
zero, it should work.


document.addEventListener("resume", onResume, false);

function onResume()
  setTimeout(function() {
       // do your thing here!
    }, 0);

It's an iOS Quirk that is documented in the docs I believe - it's been added for the Pause
event, but not Resume event - I'll fix the docs.
> online and offline events are not being fired in 1.6.0
> ------------------------------------------------------
>                 Key: CB-497
>                 URL:
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.0
>         Environment: IOS4,5 xcode4+ 
>            Reporter: Emile khattar
>            Assignee: Shazron Abdullah
>             Fix For: 1.6.1
> - after updating to 1.6 i notice that JS calls with Cordova capital C are not working
example: Cordova.exec(..)
> replacing C with c solved the problem
> - Some Cordova classes like CDVConnection.m had some JS firing with Cordova variable
with "C" exp: line103" Cordova.fireDocumentEvent('online');"];
> A review is needed to make sure no Cordova variables are needed/called

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