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-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to