Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CE431172EC for ; Thu, 26 Mar 2015 16:06:53 +0000 (UTC) Received: (qmail 85811 invoked by uid 500); 26 Mar 2015 16:06:53 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 85791 invoked by uid 500); 26 Mar 2015 16:06:53 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 85768 invoked by uid 99); 26 Mar 2015 16:06:53 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Mar 2015 16:06:53 +0000 Date: Thu, 26 Mar 2015 16:06:53 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-8185) Add online and offiline plugin-network-information events support for the Browser platform MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-8185?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14382116#comment-14382116 ] ASF GitHub Bot commented on CB-8185: ------------------------------------ Github user vladimir-kotikov commented on the pull request: https://github.com/apache/cordova-plugin-network-information/pull/25#issuecomment-86594471 My bad :dizzy_face: Fixed in https://github.com/apache/cordova-plugin-network-information/commit/481bdd93b023f808c301943ac6c541e3633aeee4 > 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