Affects Version/s: 4.1.3
Fix Version/s: None
Note: The bug entry form wouldn't let me enter the correct versions because it said they don't exist.
Using Cordova CLI 4.2.0 and the latest (0.2.14) version of the org.apache.cordova.network-information plugin, we are seeing many many "online" events, resulting in Android devices repeatedly hitting our server for updates.
To confirm the issue:
- Create a new cordova project
- platform add android
- cordova plugin add org.apache.cordova.network-information
document.addEventListener('offline', this.onOffline, false);
document.addEventListener('online', this.onOnline, false);
and console.log each time the event's received.
I am seeing it 3 or 4 times each time I toggle Airplane mode on my Samsung S5. We are seeing this in our logs for a wide variety of Android devices in the wild however.