on iOS, navigator.onLine events fire properly, but on Android they do not



I'm checking at article display time whether the device is online or not to determine whether the streaming audio/video content I've included should be displayed.

This works great on iOS, but doesn't work at all on Android.

This DOES work on Android in browsers, just not in DPS2015.


window.addEventListener("offline", function(e) { console.log("offline"); });

window.addEventListener("online", function(e) { console.log("online"); });

Neither of these will fire in DPS Android.

Accepted Solutions (0)

Answers (0)