cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geoffroy Gomet (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-8347) Github pull request: Fixing early calls connection state
Date Thu, 22 Jan 2015 10:50:34 GMT
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


Mime
View raw message