- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Tags:
- HTML5
- Intel® XDK
Link Copied
0 Replies
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page