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

Avatar

Avatar
Boost 5
Level 2
jerwarren
Level 2

Likes

5 likes

Total Posts

30 posts

Correct reply

1 solution
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile

Avatar
Boost 5
Level 2
jerwarren
Level 2

Likes

5 likes

Total Posts

30 posts

Correct reply

1 solution
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
jerwarren
Level 2

26-01-2016

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.


Example:


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)