cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filip Maj (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CB-12933) No Events fired
Date Mon, 19 Jun 2017 17:21:00 GMT

     [ https://issues.apache.org/jira/browse/CB-12933?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Filip Maj resolved CB-12933.
----------------------------
    Resolution: Cannot Reproduce

With latest master of cordova-ios (SHA 4490abf273ec6d12810c8ff5ea16d197c58ecd4b) and latest
master of cordova-plugin-network-information (SHA f78e5c4c9db9eb423afa0c95c59daf77ae598cac),
I was properly receiving online + offline events in an iPhone 7 type simulator running iOS
10.3 (by turning off/on my wifi on my laptop). I also tested this with cordova-ios@4.3.1 +
latest master of the net-info plugin - same deal. Finally, I tested cordova-ios@4.3.1 and
latest net-info plugin on an iOS simulator running iOS 10.1 - both offline and online events
fired correctly.

The code in my test sample looked like this (note that this code is triggered only after the
{{deviceready}} event has fired):

{noformat}
    onDeviceReady: function() {
        this.receivedEvent('deviceready');
        document.addEventListener("offline", function() {
            document.getElementById('status').innerHTML += '<p>offline event!</p>';
        }, false);
        document.addEventListener("online", function() {
            document.getElementById('status').innerHTML += '<p>online event!</p>';
        }, false);
    },
{noformat}

Closing this issue as cannot reproduce.

> No Events fired
> ---------------
>
>                 Key: CB-12933
>                 URL: https://issues.apache.org/jira/browse/CB-12933
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-ios, cordova-plugin-network-information
>    Affects Versions: cordova-ios@4.3.1
>            Reporter: thibaut
>            Assignee: Filip Maj
>
> Hi there,
> I was looking for using the offline and online events, but they were never fired... I
tried then :
> - iOs 10.1 : only the offline event is fired
> - iOs 10.3: no events at all
> - iOs 9.X : every things is working well
> I guess something changed with iOs updated, and I did not find any issue reporting that
issue before,
> Thanking you in advance,
> Regards



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message