Re: Network Information API

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