[ 
https://issues.apache.org/jira/browse/CB-12378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15837213#comment-15837213
 ] 

Kerri Shotts commented on CB-12378:
-----------------------------------

Thanks for the enhancement request. 

You should be able to approximate your request now by polling 
{{navigator.connection.type}} on a recurring basis.

All that said, ideally you shouldn't be judging available bandwidth by checking 
the network type -- it's possible, for instance, that this API might report 
"wifi", but the user's actually connect to a WiFi Access Point that is then 
connected to a slow cellular network, for example. 

Instead, you should always test for a route to your host and check for network 
conditions rather than expecting that the type of network will tell you 
anything. (Just because a connection type is "wifi" doesn't mean it is fast, or 
even has access to the outside world.)

> Add network type changed event
> ------------------------------
>
>                 Key: CB-12378
>                 URL: https://issues.apache.org/jira/browse/CB-12378
>             Project: Apache Cordova
>          Issue Type: Wish
>          Components: Plugin Network Information
>            Reporter: Emil Cieslar
>
> Currently, there are two events that we can listen to: online and offline. It 
> would be nice if there was another event which was fired whenever network 
> type changes. For example if user is online on Connection.CELL_4G and network 
> type changes to Connection.CELL_2G, it would be great to know that because 
> that's almost like there's no connection at all. Thanks!



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to