Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3D9FA105B9 for ; Wed, 23 Oct 2013 08:01:56 +0000 (UTC) Received: (qmail 67793 invoked by uid 500); 23 Oct 2013 08:01:52 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 67748 invoked by uid 500); 23 Oct 2013 08:01:48 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 67731 invoked by uid 99); 23 Oct 2013 08:01:47 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Oct 2013 08:01:47 +0000 Date: Wed, 23 Oct 2013 08:01:47 +0000 (UTC) From: "Kuan Yi Ming (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-5149) iOS first run online/offline events broken 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-5149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13802685#comment-13802685 ] Kuan Yi Ming commented on CB-5149: ---------------------------------- In versions 2.2.0 up to 2.9.0, the online event always triggers just before the deviceready event if the device already is connected to Wifi/3G/etc. If it isn't connected to the Internet, the offline event triggers. In 3.0.0 and 3.1.0, the online event no longer fires before the deviceready event even if it's connected to the Internet, but it works normally when turning on Wifi. This only applies to iOS, as the same event on Android behaves as it was on 2.9.0. The network-information plugin was installed when I tested these, but I doubt it is related as it's not mentioned in the documentation anyway. > iOS first run online/offline events broken > ------------------------------------------ > > Key: CB-5149 > URL: https://issues.apache.org/jira/browse/CB-5149 > Project: Apache Cordova > Issue Type: Bug > Components: iOS > Affects Versions: 3.1.0 > Environment: iOS 6 and 7 > Reporter: Kuan Yi Ming > > The code samples at http://cordova.apache.org/docs/en/3.1.0/cordova_events_events.md.html#online do not longer work. Same with offline. > When the app is first launched using PhoneGap 2.2 to 2.9, the online or offline event (where applicable) triggers before the deviceready event. In 3.1.0, this no longer happens on iOS... the event only fires when the user maually turns on or off data in the settings. > This still works normally on Android, so this might be an iOS issue. -- This message was sent by Atlassian JIRA (v6.1#6144)