Jasper created CB-1738: -------------------------- Summary: PhoneGap iOS 6 - wrong network.connection.type during turning OFF airplane mode Key: CB-1738 URL: https://issues.apache.org/jira/browse/CB-1738 Project: Apache Cordova Issue Type: Bug Components: iOS Affects Versions: 2.0.0, 1.5.0 Environment: i am testing on two iPhone4 one running OS5 ,and one on OS6 Reporter: Jasper Assignee: Shazron Abdullah
I have an app that talks to a server. Before making an RPC I use the PG API to check for connectivity: http://docs.phonegap.com/en/2.1.0/cordova_connection_connection.md.html#Connection code snippet: var networkState = navigator.network.connection.type if (networkState == "none" || networkState == "unknown") { //DO NOT make connection } Scenario: ( i am testing on two iPhone4 , one running OS5 ,and one on OS6) 1. Turn ON airplane mode from setting. wait until the radio and wifi are fully OFF 2. Turn OFF airplane, quickly switch to my app and make an RPC, make sure on the top left of the banner the connectivity status is showing "searching..." 3. Expect to see networkState as "unknown" (iOS5 behavior). but it returns "wifi" (iOS6) another minor observation - on iOS6 it takes double time to turn off the airplane mode. iOS5 it takes like around 3 seconds to have the connectivity reestablished, before i finish the following actions: toggle the mode button, close the setting app. foreground my app, click on a button. iOS6 it takes like 6 seconds, which makes the bug more easy to reproduce. -- 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