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

2013-01-25 Thread Webmaster Grumpy (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-1807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13562537#comment-13562537
 ] 

Webmaster Grumpy commented on CB-1807:
--

android 6-15

 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

2013-01-25 Thread Andrew Grieve (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-1807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13562775#comment-13562775
 ] 

Andrew Grieve commented on CB-1807:
---

Hmm, sorry, I don't know what you beem by 6-15. What I'm wondering is:

1. Does this problem happen only on your samsung gt-i9300, or are you able to 
reproduce it on any emulators/other devices (and if so, which ones)
2. What OS version does your gt-i9300 run? e.g. 2.3.0, 4.0, etc.

 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

2013-01-24 Thread Webmaster Grumpy (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-1807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13562231#comment-13562231
 ] 

Webmaster Grumpy commented on CB-1807:
--

bug is still in 2.3.0

keep getting 0 in return of
var networkState = navigator.connection.type;

I do it after document.addEventListener(deviceready, onDeviceReady, false);


 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

2013-01-24 Thread Andrew Grieve (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-1807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13562262#comment-13562262
 ] 

Andrew Grieve commented on CB-1807:
---

What OS / device are you using?

 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

2013-01-24 Thread Webmaster Grumpy (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-1807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13562275#comment-13562275
 ] 

Webmaster Grumpy commented on CB-1807:
--

samsung gt-i9300


 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

2013-01-04 Thread Andrew Grieve (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-1807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13543954#comment-13543954
 ] 

Andrew Grieve commented on CB-1807:
---

Just tested using the MobileSpec network test page. Turned off wifi, and it 
changed to none, turned on network and it changed to 4g. This was with a 
Galaxy Nexus.

I think you're best bet is to wait for 2.3 to come out and switch fully over to 
it, and then file a new bug if it still isn't working right on your device. 2.3 
should be release either today or early next week.

 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

2013-01-03 Thread Jasper (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-1807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13543176#comment-13543176
 ] 

Jasper commented on CB-1807:


Hi Andrew / Joe
I tested the changeset by applying it to 2.2 on android.js
It works fine the first time , ( for example it returns wifi correctly when i 
first check navigator.connection.type.

Then when i turn off wifi / turn on airplane mode navigator.connection.type 
remains on wifi , is it expected? 

I am testing with NexusS android version 4.1.2

 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

2013-01-03 Thread Andrew Grieve (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-1807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13543193#comment-13543193
 ] 

Andrew Grieve commented on CB-1807:
---

No, it should say none in that case. Can you try this out with the 2.3.0rc2 
code? It's available here:

http://people.apache.org/~steven/



 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

2013-01-03 Thread Jasper (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-1807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13543244#comment-13543244
 ] 

Jasper commented on CB-1807:


I have replaced the cordova.android.js with the 2.3.0rc2 one. I can see the 
corresponding changes in the file.

Force stopped my app and cleared the cache and start over again.
But i still see the problem.

This is the code snippet : 

function checkConnection()
{

if (((typeof(Cordova) != 'undefined' || typeof(cordova) != 'undefined') 
 navigator.connection))
{
 
var networkState = navigator.connection.type
alert(networkState)


// network state:
// none: No network on Android
// unknown: No network on iOS
if (networkState == none || networkState == unknown)
{
return false
}
}

return true
}

Could it be an OS issue if you verify that it works on your environment?

 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

2013-01-03 Thread Andrew Grieve (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-1807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13543249#comment-13543249
 ] 

Andrew Grieve commented on CB-1807:
---

Okay, thanks for giving that a go. I'll test it out on my device tomorrow.

I should also make sure you're not doing any navigations. There was a bug
in 2.2 that if you navigate at all the connection API is busted. Fix is
here:
https://git-wip-us.apache.org/repos/asf?p=cordova-android.git;a=blobdiff;f=framework/src/org/apache/cordova/NetworkManager.java;h=af2fc7d3b4fcd330c1898d8d5792cc83f2081519;hp=5d8791809227877d604c98cf029c26242d9642b8;hb=dc459c84a36f90f2383203ceab56a47341360937;hpb=e51b4897a34c8d4430ad8036cff86f7fd95747b8





 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

2013-01-02 Thread Jasper (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-1807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13542469#comment-13542469
 ] 

Jasper commented on CB-1807:


Hi Andrew, the links provided is not valid anymore. I am encountering the same 
issues and would like to look at the changeset. please provide updated URL. 
thanks

 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

2013-01-02 Thread Joe Bowser (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-1807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13542475#comment-13542475
 ] 

Joe Bowser commented on CB-1807:


[~jchow] The repository moved when we moved out of incubation, here's the 
changeset:

https://git-wip-us.apache.org/repos/asf?p=cordova-js.git;a=commit;h=557dab7e8e562eb7b5d5086f10f64b267758c5fc
https://git-wip-us.apache.org/repos/asf?p=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

2013-01-02 Thread Jasper (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-1807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13542491#comment-13542491
 ] 

Jasper commented on CB-1807:


Thanks. the two commits you post are the same.
I assume one of them should be 41ef8a73d4eae43640f3d8242e965eb5eba22ec0 , which 
is required because of the new clobber function?

 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

2012-11-07 Thread Thejaswi Puthraya (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-1807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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