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 D2A4592F1 for ; Fri, 1 Jun 2012 00:01:25 +0000 (UTC) Received: (qmail 80797 invoked by uid 500); 1 Jun 2012 00:01:25 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 80771 invoked by uid 500); 1 Jun 2012 00:01:25 -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 80509 invoked by uid 99); 1 Jun 2012 00:01:25 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jun 2012 00:01:25 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 20384140C2C for ; Fri, 1 Jun 2012 00:01:25 +0000 (UTC) Date: Fri, 1 Jun 2012 00:01:24 +0000 (UTC) From: "Shazron Abdullah (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <252562709.24549.1338508885144.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1015798651.13011.1331737122805.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CB-328) Cordova crashes on iOS 3 devices 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-328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13287047#comment-13287047 ] Shazron Abdullah commented on CB-328: ------------------------------------- Forgot to mention - the mobile-spec failures are attached as an image. > Cordova crashes on iOS 3 devices > -------------------------------- > > Key: CB-328 > URL: https://issues.apache.org/jira/browse/CB-328 > Project: Apache Cordova > Issue Type: Bug > Components: iOS > Affects Versions: 1.5.0 > Reporter: Shazron Abdullah > Assignee: Shazron Abdullah > Priority: Critical > Fix For: 1.8.0 > > Attachments: iOS3-MobileSpec.png > > > I just tested the 1.5.0 code, it definitely crashes during runtime for an iOS 3 device right now because of some iOS 4 code, namely registering for pause/resume lifecycle events that we didn't guard for, for devices < iOS 4. > The fix is to guard the affected code using this: > {code} > NSString* systemVersion = [[UIDevice currentDevice] systemVersion]; > BOOL isiOS4 = ([systemVersion compare:@"4.0" options:NSNumericSearch] != NSOrderedAscending); > if (isiOS4) { > // do your iOS 4 thing! > } > {code} > But I'm wondering if this is worth it since we are moving away from iOS 3. See CB-93 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira