Are there any known problems with navigator.onLine on Android 2.1?

Are there any known problems with navigator.onLine on Android 2.1? I have a Droid in flight mode, but navigator.onLine seems to be returning anyway. (I use the HTML manifest to cache the page, and its behavior works fine in Mobile Safari and Firefox offline.)

+4
source share
1 answer

Yes, as far as I could tell, navigator.onLine always returns true on Droid 2.1. I think this issue was addressed in 2.2 along with a number of other standalone APIs, including the new connection type navigation, navigator.connection.type for the current connection being used, plus the "ononline" and "onoffline" "events.

A brief description of this can be found here.

+3
source

Source: https://habr.com/ru/post/1309732/


All Articles