Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

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


Level 2

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.

0 Replies