Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-8347

Github pull request: Fixing early calls connection state

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Browser

      Description

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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              geoffgom Geoffroy Gomet
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: