Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E0F14DF5B for ; Wed, 24 Oct 2012 19:16:13 +0000 (UTC) Received: (qmail 67028 invoked by uid 500); 24 Oct 2012 19:16:13 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 66975 invoked by uid 500); 24 Oct 2012 19:16:13 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 66898 invoked by uid 99); 24 Oct 2012 19:16:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Oct 2012 19:16:13 +0000 Date: Wed, 24 Oct 2012 19:16:13 +0000 (UTC) From: "Jasper (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <2054548451.23548.1351106173343.JavaMail.jiratomcat@arcas> In-Reply-To: <1878431773.23532.1351105932049.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (CB-1738) PhoneGap iOS 6 - wrong network.connection.type during turning OFF airplane mode MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-1738?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jasper updated CB-1738: ----------------------- Labels: ios network.connection (was: airplane ios model network.connection) > 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: 1.5.0, 2.0.0 > Environment: i am testing on two iPhone4 one running OS5 ,and one on OS6 > Reporter: Jasper > Assignee: Shazron Abdullah > Labels: ios, network.connection > > 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