[
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 [email protected] +
latest master of the net-info plugin - same deal. Finally, I tested
[email protected] 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: [email protected]
> 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: [email protected]
For additional commands, e-mail: [email protected]