W3C home > Mailing lists > Public > public-device-apis@w3.org > January 2014

Re: Network Information API

From: Mats Wichmann <m.wichmann@samsung.com>
Date: Mon, 20 Jan 2014 17:52:28 -0700
Message-id: <52DDC4CC.6020007@samsung.com>
To: Marcos Caceres <w3c@marcosc.com>, Francesco Iovine <f.iovine@gmail.com>
Cc: Ehsan Akhgari <ehsan@mozilla.com>, Fernando Jiménez Moreno <ferjmoreno@gmail.com>, "public-device-apis@w3.org" <public-device-apis@w3.org>
On 01/20/2014 12:47 PM, Marcos Caceres wrote:

> When all you really wanted was "isCarrierNetwork"? There doesn't appear to be any value, at least in this application, in knowing if the connection is 2g, 3g, or 4g. 
> It also shows how much cleaner this is with the new proposed API:
> if (this.netInfo.connection === 'wifi') { return true; }

yes but even here we already have some cases where "it doesn't mean what
you think it means" if we're assuming wifi = good quality, unrestricted
usage is available:  a mobile carrier-connected device is serving as a
hotspot to another device, which then sees 'wifi'.
Received on Tuesday, 21 January 2014 00:53:34 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:33:03 UTC