Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

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