cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emil Cieslar (JIRA)" <>
Subject [jira] [Commented] (CB-12378) Add network type changed event
Date Thu, 26 Jan 2017 13:37:24 GMT


Emil Cieslar commented on CB-12378:

Thanks for quick reply! I'm aware I could be polling navigator.connection.type, but that means
I'd have to be polling. Listening to event would be much cleaner in the code than manually
doing it. 

I agree that network type is not reliable enough to determine connection speed, but I guess
in some cases it's enough.

> Add network type changed event
> ------------------------------
>                 Key: CB-12378
>                 URL:
>             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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message