W3C home > Mailing lists > Public > public-device-apis@w3.org > July 2010

navigator.connection, navigator.onLine in Android 2.2

From: Dominique Hazael-Massieux <dom@w3.org>
Date: Thu, 08 Jul 2010 09:42:53 +0200
To: public-device-apis@w3.org
Message-ID: <1278574973.7409.1034.camel@localhost>

According to [1], the Android 2.2 browser brings a new API to describe
network connections: 
        There is a property to query about the current connection type:
        navigator.connection.type. There is also a navigator.connection
        enumeration, having the possible values: UNKNOWN, ETHERNET,
        WIFI, CELL_2G, CELL_3G. […]
        The boolean navigator.onLine can be used to know if the device
        is connected or not to the web  […]. Events like ononline and
        onoffline are working fine to detect changes in the connection
        (even when we change from 3G to WIFI, the online event is

Given that these are features that are supposed to be handled by our
interfaces in SysInfo, it would be useful to see if and how we can get
convergence on these.


Received on Thursday, 8 July 2010 07:43:00 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:32:22 UTC