Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-25901

iOS: App crashes when background services expire and queue tries to flush

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 6.3.0, Release 7.1.0
    • Fix Version/s: Release 7.5.0
    • Component/s: iOS
    • Labels:
    • Environment:

      SDK 6+ (tested on 6.3, 7.0.1 and 7.1)

      Description

      File TiApp.m

      App crashes on line 632

      /* for (id key in pendingCompletionHandlers)

      { [self completionHandler:key withResult:2]; //UIBackgroundFetchResultFailed }

      */

      // elements of array are removed while array is enumerated
      // YOU SHOULD TRY LIKE THIS:

      for (id key in [pendingCompletionHandlers allKeys])

      { [self completionHandler:key withResult:2]; //UIBackgroundFetchResultFailed }

        Attachments

          Activity

            People

            • Assignee:
              hknoechel Hans Knöchel
              Reporter:
              office@smartbit.rs Igor Stojanovic
              Reviewer:
              Vijay Singh
              Tester:
              Samir Mohammed
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-6260
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code