Apache Cordova
  1. Apache Cordova
  2. CB-556 integrate cordova js with webos
  3. CB-281

NetworkConnection.getInfo() needs to be normalized across all platforms.

    Details

    • Type: Sub-task Sub-task
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.5.0
    • Fix Version/s: None
    • Component/s: webOS
    • Labels:
      None

      Description

      Cordova-JS expects a single action from the Network plugin: "getConnectionInfo". All platforms need to be normalized so they will work the same. This action should simply return one of the following Strings:

      • "unknown"
      • "ethernet"
      • "wifi"
      • "2g"
      • "3g"
      • "4g"
      • "none"

      Currently Android, iOS, BlackBerry and Windows Phone implement this. The other tagged platforms in this issue do not.

        Activity

        Filip Maj made changes -
        Parent Issue CB-179 [ CB-179 ] CB-556 [ CB-556 ]
        Filip Maj made changes -
        Assignee Filip Maj [ filmaj ] Herm Wong [ hermwong ]
        Component/s Bada [ 12316405 ]
        Component/s Qt [ 12317403 ]
        Filip Maj made changes -
        Parent CB-179 [ 12538699 ]
        Issue Type Bug [ 1 ] Sub-task [ 7 ]
        Filip Maj made changes -
        Description Cordova-JS expects a single action from the Network plugin: "getConnectionInfo". All platforms need to be normalized so they will work the same. This action should simply return one of the following Strings:

        * {{"unknown"}}
        * {{"ethernet"}}
        * {{"wifi"}}
        * {{"2g"}}
        * {{"3g"}}
        * {{"4g"}}
        * {{"none"}}

        Currently Android and iOS implement this. The other tagged platforms in this issue do not.
        Cordova-JS expects a single action from the Network plugin: "getConnectionInfo". All platforms need to be normalized so they will work the same. This action should simply return one of the following Strings:

        * {{"unknown"}}
        * {{"ethernet"}}
        * {{"wifi"}}
        * {{"2g"}}
        * {{"3g"}}
        * {{"4g"}}
        * {{"none"}}

        Currently Android, iOS, BlackBerry and Windows Phone implement this. The other tagged platforms in this issue do not.
        Component/s webOS [ 12317201 ]
        Component/s BlackBerry [ 12316402 ]
        Component/s WP7 [ 12316404 ]
        Filip Maj made changes -
        Description NetworkConnection.getInfo() is the Android version of the function. It needs to be normalized so all platforms will work the same. Probably require changes in the native code for many of the platforms. Cordova-JS expects a single action from the Network plugin: "getConnectionInfo". All platforms need to be normalized so they will work the same. This action should simply return one of the following Strings:

        * {{"unknown"}}
        * {{"ethernet"}}
        * {{"wifi"}}
        * {{"2g"}}
        * {{"3g"}}
        * {{"4g"}}
        * {{"none"}}

        Currently Android and iOS implement this. The other tagged platforms in this issue do not.
        Component/s Bada [ 12316405 ]
        Component/s Qt [ 12317403 ]
        Component/s CordovaJS [ 12317202 ]
        Filip Maj made changes -
        Component/s iOS [ 12316400 ]
        Filip Maj made changes -
        Component/s BlackBerry [ 12316402 ]
        Component/s WP7 [ 12316404 ]
        Filip Maj made changes -
        Assignee Filip Maj [ filmaj ]
        Filip Maj made changes -
        Field Original Value New Value
        Component/s iOS [ 12316400 ]
        Simon MacDonald created issue -

          People

          • Assignee:
            Herm Wong
            Reporter:
            Simon MacDonald
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development