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

        Simon MacDonald created issue -
        Hide
        Filip Maj added a comment -

        Definitely affects iOS

        Show
        Filip Maj added a comment - Definitely affects iOS
        Filip Maj made changes -
        Field Original Value New Value
        Component/s iOS [ 12316400 ]
        Filip Maj made changes -
        Assignee Filip Maj [ filmaj ]
        Hide
        Filip Maj added a comment -

        Tagged platforms affected by this

        Show
        Filip Maj added a comment - Tagged platforms affected by this
        Filip Maj made changes -
        Component/s BlackBerry [ 12316402 ]
        Component/s WP7 [ 12316404 ]
        Hide
        Filip Maj added a comment -

        Removed iOS, fixed in 1.6.0rc1

        Show
        Filip Maj added a comment - Removed iOS, fixed in 1.6.0rc1
        Filip Maj made changes -
        Component/s iOS [ 12316400 ]
        Hide
        Filip Maj added a comment -

        Tagged with native platforms that need updating. Made explicit the native service + action and the proper return values from native.

        Show
        Filip Maj added a comment - Tagged with native platforms that need updating. Made explicit the native service + action and the proper return values from native.
        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 ]
        Hide
        Filip Maj added a comment -

        Dropped BB and WP7 tags and added webOS. BB + WP7 have been patched.

        Show
        Filip Maj added a comment - Dropped BB and WP7 tags and added webOS. BB + WP7 have been patched.
        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 -
        Parent CB-179 [ 12538699 ]
        Issue Type Bug [ 1 ] Sub-task [ 7 ]
        Hide
        Filip Maj added a comment -

        Bada's been done! Woohoo.

        All that's left is webOS integration, thus assigning to Herm. Part of the CB-179 (unified JS) work.

        Show
        Filip Maj added a comment - Bada's been done! Woohoo. All that's left is webOS integration, thus assigning to Herm. Part of the CB-179 (unified JS) work.
        Filip Maj made changes -
        Assignee Filip Maj [ filmaj ] Herm Wong [ hermwong ]
        Component/s Bada [ 12316405 ]
        Component/s Qt [ 12317403 ]
        Filip Maj made changes -
        Parent Issue CB-179 [ CB-179 ] CB-556 [ CB-556 ]

          People

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

            Dates

            • Created:
              Updated:

              Development