You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Vladimir Kotikov (JIRA)" <ji...@apache.org> on 2015/02/12 07:37:11 UTC

[jira] [Resolved] (CB-8185) Add online and offiline plugin-network-information events support for the Browser platform

     [ https://issues.apache.org/jira/browse/CB-8185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vladimir Kotikov resolved CB-8185.
----------------------------------
    Resolution: Fixed

> Add online and offiline plugin-network-information events support for the Browser platform
> ------------------------------------------------------------------------------------------
>
>                 Key: CB-8185
>                 URL: https://issues.apache.org/jira/browse/CB-8185
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: Browser, Plugin Network Information
>            Reporter: Sergey Shakhnazarov
>            Assignee: Vladimir Kotikov
>
> Initial implementation used XHR to check whether we connected to network or not. Two main problems of this approach is that it used CORS and wasn't able to detect local network access.
> So for better compatibility with specs it is better to use browsers native implementation of {{navigator.onLine}} property which properly handles all the aspects of network accessibility.
> {{navigator.onLine}} available for all modern browsers: http://caniuse.com/#feat=online-status



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org