0 Replies Latest reply on Jan 10, 2018 10:08 AM by tymekt

    Network information on Windows 10

    tymekt

      Hi, I've got an issue with cordova-plugin-network-information. I am making app in Intel XDK for Android and Windows 10 desktop, which is compiled by PhoneGap Build. When I use cordova network information plugin on Android device it work fine. On Windows 10 desktop it fails, there aren't any alerts or text content. What could be the issue?
      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";  
      }