Cordova network information doesn't work on Windows 10 app

Cordova network information doesn't work on Windows 10 app

Hi, I've got an issue with cordova-plugin-network-information. I am making app for Android and Windows 10 desktop. When I use cordova network information plugin on Android device it work fine. On Windows 10 desktop it fails, there's no action. Here's my code:

 

document.addEventListener("offline", onOffline, false);
document.addEventListener("online", onOnline, false);

function onOffline() {
   alert('Not connected.');
   document.getElementById("networkInfo").textContent = "No connection";
}

function onOnline() {
   document.getElementById("networkInfo").textContent = "Connected";   
}

 

What could be the issue?

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.