incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gene Connolly (JIRA)" <>
Subject [jira] [Commented] (CB-1227) 'resume' event is not fired after WiFi is turned on/off when listening to 'online' or 'offline' events.
Date Tue, 14 Aug 2012 12:15:38 GMT


Gene Connolly commented on CB-1227:

    <a onclick="alert('responding')">test</a>

    <script type="text/javascript">

        $(document).ready(function () {
            document.addEventListener("deviceready", onReady, false);
        function onReady() {
            document.addEventListener("online", online, false);
            document.addEventListener("offline", offline, false);
        function online() {
        function offline() {


Here is the body of the reproducible error. Although, by replacing alerts with console.log
resolves my issue. Thanks!
> 'resume' event is not fired after WiFi is turned on/off when listening to 'online' or
'offline' events.
> -------------------------------------------------------------------------------------------------------
>                 Key: CB-1227
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.9.0
>            Reporter: Gene Connolly
>            Assignee: Shazron Abdullah
> When listening for 'online' and 'offline' events in an iOS cordova app, if you  navigate
to the device's settings app, turn on or off the WiFi (toggle), when you return to the cordova
app it will be frozen.
> Notes: If you navigate away from the app again and return it will respond. If you are
only listening to 'online' then the issue will only occur when you turn the WiFi for a device
on. Opposite applies for 'offline'.
> This issue is best demonstrated by a simple app that sends notifications on 'online'
'offline' and 'resume'.

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