incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (Created) (JIRA)" <>
Subject [jira] [Created] (CB-328) Cordova crashes on iOS 3 devices
Date Wed, 14 Mar 2012 14:58:42 GMT
Cordova crashes on iOS 3 devices

                 Key: CB-328
             Project: Apache Callback
          Issue Type: Bug
          Components: iOS
    Affects Versions: 1.5.0
            Reporter: Shazron Abdullah
            Assignee: Shazron Abdullah
            Priority: Critical

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:
NSString* systemVersion = [[UIDevice currentDevice] systemVersion];
BOOL isiOS4 = ([systemVersion compare:@"4.0" options:NSNumericSearch] != NSOrderedAscending);
if (isiOS4) {
   // do your iOS 4 thing!

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:!default.jspa
For more information on JIRA, see:


View raw message