[
https://issues.apache.org/jira/browse/CB-328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Shazron Abdullah resolved CB-328.
---------------------------------
Resolution: Fixed
NOTE: To test on iOS 3.x, you need to included the json2 library locally in
your www and include the script tag referencing it. iOS 3 does not include the
json2 library, whereas iOS versions newer than it do.
Fix commit -
http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/982d0bb3
> 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