Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-328

Cordova crashes on iOS 3 devices

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.5.0
    • 1.8.0
    • cordova-ios
    • None

    Description

      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

      Attachments

        1. iOS3-MobileSpec.png
          59 kB
          Shazron Abdullah

        Issue Links

          Activity

            People

              shazron Shazron Abdullah
              shazron Shazron Abdullah
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: