You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Geoffroy Gomet (JIRA)" <ji...@apache.org> on 2015/01/22 11:50:34 UTC

[jira] [Created] (CB-8347) Github pull request: Fixing early calls connection state

Geoffroy Gomet created CB-8347:
----------------------------------

             Summary: Github pull request: Fixing early calls connection state
                 Key: CB-8347
                 URL: https://issues.apache.org/jira/browse/CB-8347
             Project: Apache Cordova
          Issue Type: Bug
          Components: Plugin Network Information
         Environment: Browser
            Reporter: Geoffroy Gomet
            Priority: Minor


Our application requests directly "startup values" over an ajax connection.
In the current browser implementation, the network-information plugin always returns "offline" (Conection.None), as the ajax request for google.com has not returned yet.
It is only after a short time that the ajax call returns and give the correct network state.

We propose the callback to be called when the call is finished, to avoid returning an incorrect network state (before evaluation).



--
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