You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Thejaswi Puthraya (JIRA)" <ji...@apache.org> on 2012/11/02 13:19:12 UTC

[jira] [Created] (CB-1807) Android network.connection.type is not equal to network.network.connection.type

Thejaswi Puthraya created CB-1807:
-------------------------------------

             Summary: Android network.connection.type is not equal to network.network.connection.type
                 Key: CB-1807
                 URL: https://issues.apache.org/jira/browse/CB-1807
             Project: Apache Cordova
          Issue Type: Bug
          Components: Android
    Affects Versions: 2.2.0
            Reporter: Thejaswi Puthraya
            Assignee: Joe Bowser


As per the documentation and example navigator.connection.type is what was previously navigator.network.connection.type.

"""
Before Cordova 2.2.0, the Connection object existed at: navigator.network.connection.

To match the spec, this was changed to navigator.connection in 2.2.0.

navigator.network.connection still exists, but is now deprecated and will be removed in a future release.
"""

But in the file that I am enclosing to reproduce the bug, network.connection.type is always 'unknown'(0) though network.network.connection.type returns the correct value.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CB-1807) Android navigator.connection.type is not equal to navigator.network.connection.type

Posted by "Thejaswi Puthraya (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1807?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thejaswi Puthraya updated CB-1807:
----------------------------------

    Description: 
As per the documentation and example navigator.connection.type is what was previously navigator.network.connection.type.

"""
Before Cordova 2.2.0, the Connection object existed at: navigator.network.connection.

To match the spec, this was changed to navigator.connection in 2.2.0.

navigator.network.connection still exists, but is now deprecated and will be removed in a future release.
"""

But in the file that I am enclosing to reproduce the bug, navigator.connection.type is always (irrespective of connection) 'unknown'(0) though navigator.network.connection.type returns the correct value.

  was:
As per the documentation and example navigator.connection.type is what was previously navigator.network.connection.type.

"""
Before Cordova 2.2.0, the Connection object existed at: navigator.network.connection.

To match the spec, this was changed to navigator.connection in 2.2.0.

navigator.network.connection still exists, but is now deprecated and will be removed in a future release.
"""

But in the file that I am enclosing to reproduce the bug, network.connection.type is always 'unknown'(0) though network.network.connection.type returns the correct value.

    
> Android navigator.connection.type is not equal to navigator.network.connection.type
> -----------------------------------------------------------------------------------
>
>                 Key: CB-1807
>                 URL: https://issues.apache.org/jira/browse/CB-1807
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.2.0
>            Reporter: Thejaswi Puthraya
>            Assignee: Joe Bowser
>         Attachments: index.html
>
>
> As per the documentation and example navigator.connection.type is what was previously navigator.network.connection.type.
> """
> Before Cordova 2.2.0, the Connection object existed at: navigator.network.connection.
> To match the spec, this was changed to navigator.connection in 2.2.0.
> navigator.network.connection still exists, but is now deprecated and will be removed in a future release.
> """
> But in the file that I am enclosing to reproduce the bug, navigator.connection.type is always (irrespective of connection) 'unknown'(0) though navigator.network.connection.type returns the correct value.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CB-1807) Android navigator.connection.type is not equal to navigator.network.connection.type

Posted by "Thejaswi Puthraya (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1807?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thejaswi Puthraya updated CB-1807:
----------------------------------

    Summary: Android navigator.connection.type is not equal to navigator.network.connection.type  (was: Android network.connection.type is not equal to network.network.connection.type)
    
> Android navigator.connection.type is not equal to navigator.network.connection.type
> -----------------------------------------------------------------------------------
>
>                 Key: CB-1807
>                 URL: https://issues.apache.org/jira/browse/CB-1807
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.2.0
>            Reporter: Thejaswi Puthraya
>            Assignee: Joe Bowser
>         Attachments: index.html
>
>
> As per the documentation and example navigator.connection.type is what was previously navigator.network.connection.type.
> """
> Before Cordova 2.2.0, the Connection object existed at: navigator.network.connection.
> To match the spec, this was changed to navigator.connection in 2.2.0.
> navigator.network.connection still exists, but is now deprecated and will be removed in a future release.
> """
> But in the file that I am enclosing to reproduce the bug, network.connection.type is always 'unknown'(0) though network.network.connection.type returns the correct value.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Assigned] (CB-1807) Android navigator.connection.type is not equal to navigator.network.connection.type

Posted by "Simon MacDonald (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1807?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon MacDonald reassigned CB-1807:
-----------------------------------

    Assignee: Andrew Grieve  (was: Joe Bowser)
    
> Android navigator.connection.type is not equal to navigator.network.connection.type
> -----------------------------------------------------------------------------------
>
>                 Key: CB-1807
>                 URL: https://issues.apache.org/jira/browse/CB-1807
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.2.0
>            Reporter: Thejaswi Puthraya
>            Assignee: Andrew Grieve
>         Attachments: index.html
>
>
> As per the documentation and example navigator.connection.type is what was previously navigator.network.connection.type.
> """
> Before Cordova 2.2.0, the Connection object existed at: navigator.network.connection.
> To match the spec, this was changed to navigator.connection in 2.2.0.
> navigator.network.connection still exists, but is now deprecated and will be removed in a future release.
> """
> But in the file that I am enclosing to reproduce the bug, navigator.connection.type is always (irrespective of connection) 'unknown'(0) though navigator.network.connection.type returns the correct value.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CB-1807) Android network.connection.type is not equal to network.network.connection.type

Posted by "Thejaswi Puthraya (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1807?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thejaswi Puthraya updated CB-1807:
----------------------------------

    Attachment: index.html

HTML file that will reproduce the bug.
                
> Android network.connection.type is not equal to network.network.connection.type
> -------------------------------------------------------------------------------
>
>                 Key: CB-1807
>                 URL: https://issues.apache.org/jira/browse/CB-1807
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.2.0
>            Reporter: Thejaswi Puthraya
>            Assignee: Joe Bowser
>         Attachments: index.html
>
>
> As per the documentation and example navigator.connection.type is what was previously navigator.network.connection.type.
> """
> Before Cordova 2.2.0, the Connection object existed at: navigator.network.connection.
> To match the spec, this was changed to navigator.connection in 2.2.0.
> navigator.network.connection still exists, but is now deprecated and will be removed in a future release.
> """
> But in the file that I am enclosing to reproduce the bug, network.connection.type is always 'unknown'(0) though network.network.connection.type returns the correct value.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1807) Android navigator.connection.type is not equal to navigator.network.connection.type

Posted by "Thejaswi Puthraya (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13489423#comment-13489423 ] 

Thejaswi Puthraya commented on CB-1807:
---------------------------------------

navigator.connection.type doesn't seem to be getting updated and is always set to 0 for some reason. Start an app with all network connections off and try to do a console.log(navigator.onLine) and it will return true.
                
> Android navigator.connection.type is not equal to navigator.network.connection.type
> -----------------------------------------------------------------------------------
>
>                 Key: CB-1807
>                 URL: https://issues.apache.org/jira/browse/CB-1807
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.2.0
>            Reporter: Thejaswi Puthraya
>            Assignee: Joe Bowser
>         Attachments: index.html
>
>
> As per the documentation and example navigator.connection.type is what was previously navigator.network.connection.type.
> """
> Before Cordova 2.2.0, the Connection object existed at: navigator.network.connection.
> To match the spec, this was changed to navigator.connection in 2.2.0.
> navigator.network.connection still exists, but is now deprecated and will be removed in a future release.
> """
> But in the file that I am enclosing to reproduce the bug, navigator.connection.type is always (irrespective of connection) 'unknown'(0) though navigator.network.connection.type returns the correct value.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1807) Android navigator.connection.type is not equal to navigator.network.connection.type

Posted by "Thejaswi Puthraya (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13492938#comment-13492938 ] 

Thejaswi Puthraya commented on CB-1807:
---------------------------------------

Andrew, thanks for the fix. I can confirm it works.
                
> Android navigator.connection.type is not equal to navigator.network.connection.type
> -----------------------------------------------------------------------------------
>
>                 Key: CB-1807
>                 URL: https://issues.apache.org/jira/browse/CB-1807
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.2.0
>            Reporter: Thejaswi Puthraya
>            Assignee: Andrew Grieve
>             Fix For: 2.3.0
>
>         Attachments: index.html
>
>
> As per the documentation and example navigator.connection.type is what was previously navigator.network.connection.type.
> """
> Before Cordova 2.2.0, the Connection object existed at: navigator.network.connection.
> To match the spec, this was changed to navigator.connection in 2.2.0.
> navigator.network.connection still exists, but is now deprecated and will be removed in a future release.
> """
> But in the file that I am enclosing to reproduce the bug, navigator.connection.type is always (irrespective of connection) 'unknown'(0) though navigator.network.connection.type returns the correct value.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (CB-1807) Android navigator.connection.type is not equal to navigator.network.connection.type

Posted by "Andrew Grieve (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1807?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Grieve resolved CB-1807.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 2.3.0

Yep, looks like I dropped the ball on this one. Not sure how this slipped by :(

It's now fixed for real by these two commits:
https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-js.git;a=commit;h=41ef8a73d4eae43640f3d8242e965eb5eba22ec0
https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-js.git;a=commit;h=557dab7e8e562eb7b5d5086f10f64b267758c5fc
                
> Android navigator.connection.type is not equal to navigator.network.connection.type
> -----------------------------------------------------------------------------------
>
>                 Key: CB-1807
>                 URL: https://issues.apache.org/jira/browse/CB-1807
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.2.0
>            Reporter: Thejaswi Puthraya
>            Assignee: Andrew Grieve
>             Fix For: 2.3.0
>
>         Attachments: index.html
>
>
> As per the documentation and example navigator.connection.type is what was previously navigator.network.connection.type.
> """
> Before Cordova 2.2.0, the Connection object existed at: navigator.network.connection.
> To match the spec, this was changed to navigator.connection in 2.2.0.
> navigator.network.connection still exists, but is now deprecated and will be removed in a future release.
> """
> But in the file that I am enclosing to reproduce the bug, navigator.connection.type is always (irrespective of connection) 'unknown'(0) though navigator.network.connection.type returns the correct value.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1807) Android navigator.connection.type is not equal to navigator.network.connection.type

Posted by "Thejaswi Puthraya (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13489405#comment-13489405 ] 

Thejaswi Puthraya commented on CB-1807:
---------------------------------------

Maybe related to CB-1269?
                
> Android navigator.connection.type is not equal to navigator.network.connection.type
> -----------------------------------------------------------------------------------
>
>                 Key: CB-1807
>                 URL: https://issues.apache.org/jira/browse/CB-1807
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.2.0
>            Reporter: Thejaswi Puthraya
>            Assignee: Joe Bowser
>         Attachments: index.html
>
>
> As per the documentation and example navigator.connection.type is what was previously navigator.network.connection.type.
> """
> Before Cordova 2.2.0, the Connection object existed at: navigator.network.connection.
> To match the spec, this was changed to navigator.connection in 2.2.0.
> navigator.network.connection still exists, but is now deprecated and will be removed in a future release.
> """
> But in the file that I am enclosing to reproduce the bug, navigator.connection.type is always (irrespective of connection) 'unknown'(0) though navigator.network.connection.type returns the correct value.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1807) Android network.connection.type is not equal to network.network.connection.type

Posted by "Thejaswi Puthraya (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13489384#comment-13489384 ] 

Thejaswi Puthraya commented on CB-1807:
---------------------------------------

This may be slightly related to CB-1604 though it is for iOS.
                
> Android network.connection.type is not equal to network.network.connection.type
> -------------------------------------------------------------------------------
>
>                 Key: CB-1807
>                 URL: https://issues.apache.org/jira/browse/CB-1807
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.2.0
>            Reporter: Thejaswi Puthraya
>            Assignee: Joe Bowser
>         Attachments: index.html
>
>
> As per the documentation and example navigator.connection.type is what was previously navigator.network.connection.type.
> """
> Before Cordova 2.2.0, the Connection object existed at: navigator.network.connection.
> To match the spec, this was changed to navigator.connection in 2.2.0.
> navigator.network.connection still exists, but is now deprecated and will be removed in a future release.
> """
> But in the file that I am enclosing to reproduce the bug, network.connection.type is always 'unknown'(0) though network.network.connection.type returns the correct value.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira